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


Groups > comp.lang.python > #32109 > unrolled thread

Re: can we append a list with another list in Python ?

Started byDavid Hutto <dwightdhutto@gmail.com>
First post2012-10-25 06:13 -0400
Last post2012-10-25 06:13 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: can we append a list with another list in Python ? David Hutto <dwightdhutto@gmail.com> - 2012-10-25 06:13 -0400

#32109 — Re: can we append a list with another list in Python ?

FromDavid Hutto <dwightdhutto@gmail.com>
Date2012-10-25 06:13 -0400
SubjectRe: can we append a list with another list in Python ?
Message-ID<mailman.2831.1351160008.27098.python-list@python.org>
Also,

>>> list_1 = [i for i in range(0,5)]
>>> list_2 = [i for i in range(5,11)]
>>> list_0 = [list_1,list_2]
>>> list_0
[[0, 1, 2, 3, 4], [5, 6, 7, 8, 9, 10]]


-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web