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


Groups > comp.lang.python > #103459

Nested List question

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From <grsmith@atlanticbb.net>
Newsgroups comp.lang.python
Subject Nested List question
Date Wed, 24 Feb 2016 15:59:40 -0500
Lines 20
Message-ID <mailman.105.1456347598.20994.python-list@python.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de NffvphN8RMMaPR14PV3v6QmKtviNcwUy3fDeVCYF3VDA==
Return-Path <grsmith@atlanticbb.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.094
X-Spam-Evidence '*H*': 0.82; '*S*': 0.00; 'elements.': 0.05; 'subject:question': 0.08; 'nest': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'all,': 0.20; 'tried': 0.24; 'words': 0.24; 'figure': 0.27; 'that.': 0.30; 'to:name:python-list': 0.30; 'received:10.0.0': 0.32; 'subject:List': 0.33; 'correctly': 0.34; 'received:10.0': 0.34; 'list': 0.34; 'could': 0.35; 'park': 0.35; 'to:addr:python-list': 0.36; 'received:10': 0.37; 'thanks': 0.37; 'list.': 0.37; 'several': 0.38; 'goes': 0.39; 'to:addr:python.org': 0.40; 'from:no real name:2**0': 0.60; 'received:38': 0.81; 'avenue.': 0.84; 'received:38.111': 0.84; 'broadway': 0.91
X-Scanner-Info Cloudmark - http://www.cloudmark.com
X-CNFS-Analysis v=2.1 cv=U+Zvdrfu c=1 sm=1 tr=0 a=wmZXJE1MrsZYcnKSeUNejA==:117 a=wmZXJE1MrsZYcnKSeUNejA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=PrUCvLxeNZzFfGXV2oEA:9 a=wPNLvfGTeEIA:10 a=6OJKfNb_ZdjdOpZ0HE4A:9 a=THmTTY2PAcVAY0TU:21 a=_W_S_7VecoQA:10
X-CMAE-Score 0.00
X-Scanned-by CMAE
X-AUTH-ID grsmith@atlanticbb.net
X-Priority 3
X-MSMail-Priority Normal
Importance Normal
X-Mailer Microsoft Windows Live Mail 15.4.3555.308
X-MimeOLE Produced By Microsoft MimeOLE V15.4.3555.308
X-CMAE-Envelope MS4wfLfZFuIemWo2yXA37Qn8EnYjYqaeMtJSAFH0IKocaeLnXG7IU0GhGUYVctjSsYsEeJOkcJDHqVbz/BpNkyftx11ld14pYr/oJ0MeX8nuhdsQFCXqLR8wTDeZgIl/AP1LMwTeF14mTDbV/xp8t1MVxfcrmfxjp+qGl78tFGJDKsSO13cNXcWt5v3dfHVIMW69QTAOHc3EaH4X3ts2YeJLQxU=
X-Content-Filtered-By Mailman/MimeDel 2.1.21rc2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:103459

Show key headers only | 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