Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32098 > unrolled thread
| Started by | Dave Angel <d@davea.name> |
|---|---|
| First post | 2012-10-25 05:16 -0400 |
| Last post | 2012-10-25 05:16 -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.
Re: can we append a list with another list in Python ? Dave Angel <d@davea.name> - 2012-10-25 05:16 -0400
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-10-25 05:16 -0400 |
| Subject | Re: can we append a list with another list in Python ? |
| Message-ID | <mailman.2818.1351156645.27098.python-list@python.org> |
On 10/25/2012 05:04 AM, inshu chauhan wrote: > Actually what I wanted to do is : > > suppose there are 3 lists : > > like for xample : > > clist = [] an empty list , alist = [1,2,3], blist = [4,5,6] > > and the I want the result is clist = [ [1,2,3], [4,5,6] ..] > > then I want to read all the lists in clist one by one > > like : > > for item in clist: > print item > > which should print: > > [1,2,3] > [4,5,6] > > clist = alist, blist or if the clist initial contents were relevant, perhaps you mean clist += alist, blist -- DaveA
Back to top | Article view | comp.lang.python
csiph-web