Menu

Need Implement Body Function Must Done Simply Complicated M Beginner Use Break Continue Pr Q43789793

A “address file contains one street address per line, such as: 100 Main Street 23 Spring Park Road 2012 Sunny Lane 4 Martin L

we need to implement the body of this function, and itmust be done very simply but not complicated because I’m abeginner. no use of break,continue, print, enumeratestatements.

thank you!!!

A “address file contains one street address per line, such as: 100 Main Street 23 Spring Park Road 2012 Sunny Lane 4 Martin Luther King Drive An address list” is a list of lists of strs, where each inner list is a 3-element list of street number name, and type. For example, the address list” for the file above is: [[‘100’, ‘Main’, ‘Street’], [’23’, ‘Spring Park’, ‘Road’). [.2012′, ‘Sunny’, ‘Lane’), (‘4’, ‘Martin Luther King’. Drive’]] In the file, a single space separates the number, name and type. The format of each address is: • the street number is an integer • the street name is one or more words (with words separated by a single space) • the street type is one word Complete the following funtion according to its docstring description. def load_addresses (numbers_file): ***(file) -> list of lists of strs Return an “address list” based on the contents of the given “address file”. Show transcribed image text A “address file contains one street address per line, such as: 100 Main Street 23 Spring Park Road 2012 Sunny Lane 4 Martin Luther King Drive An address list” is a list of lists of strs, where each inner list is a 3-element list of street number name, and type. For example, the address list” for the file above is: [[‘100’, ‘Main’, ‘Street’], [’23’, ‘Spring Park’, ‘Road’). [.2012′, ‘Sunny’, ‘Lane’), (‘4’, ‘Martin Luther King’. Drive’]] In the file, a single space separates the number, name and type. The format of each address is: • the street number is an integer • the street name is one or more words (with words separated by a single space) • the street type is one word Complete the following funtion according to its docstring description. def load_addresses (numbers_file): ***(file) -> list of lists of strs Return an “address list” based on the contents of the given “address file”.

Expert Answer


Answer to we need to implement the body of this function, and it must be done very simply but not complicated because I’m a begin…

OR