Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103459

Nested List question

From <grsmith@atlanticbb.net>
Newsgroups comp.lang.python
Subject Nested List question
Date 2016-02-24 15:59 -0500
Message-ID <mailman.105.1456347598.20994.python-list@python.org> (permalink)

Show all headers | View raw


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 

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Nested List question <grsmith@atlanticbb.net> - 2016-02-24 15:59 -0500
  Re: Nested List question Grant Edwards <invalid@invalid.invalid> - 2016-02-24 21:14 +0000

csiph-web