Nested lists, simple though

sturlamolden sturlamolden at yahoo.no
Sun Apr 20 18:33:52 EDT 2008


On Apr 21, 12:25 am, Zethex <zet... at hotmail.com> wrote:

> Anyway the amount of [[]] do increase over time.  Im just wondering is there
> a simple way to add these together so they become 1 simple list, so it would
> be ['computer'....'asus'] etc without the nested list.  Its random the
> amount each time so i cant just go a[0]+a[1].
> Thank you if you can help


Does this answer your question?

>>> a = [1,2,3]
>>> a.extend([4,5,6])
>>> a
[1, 2, 3, 4, 5, 6]






More information about the Python-list mailing list