Nested List question

grsmith at atlanticbb.net grsmith at atlanticbb.net
Wed Feb 24 15:59:40 EST 2016


All,

Can you have a phython list like:
['George',
'Soros',
['99 First Street',
  '33 Broadway Avenue', ['Apt 303'],
  '1 Park Avenue'],
  'New York', 'NY']

In other words how do you correctly nest the
['Apt 303'] so it goes with 33 Broadway Avenue.

Also, I tried several ways and could not figure out
how to get the ['Apt 303'] out of the list. How can 
you do that. It is the ['Apt 303'] that is the problem,
I know how to do the other elements.

thanks
George 


More information about the Python-list mailing list