can we append a list with another list in Python ?

David Hutto dwightdhutto at gmail.com
Thu Oct 25 06:13:26 EDT 2012


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



More information about the Python-list mailing list