Menu

(Solved) : Use String Methods Indexing Extract Information Infostring Infostring Address Xxx North Xx Q43916816 . . .

use string methods and indexing to extract information from the”info_string”

info_string = ‘ADDRESS: XXX North XXX East, City: Salt LakeCity, State: Utah, ZIP: 84108’

# your list should be of form [address, city, state, zip]

Would like to do this using the regex function, but I’m not surehow to do it. This is in python.

Expert Answer


Answer to use string methods and indexing to extract information from the “info_string” info_string = ‘ADDRESS: XXX North XXX East…

OR