Re: can we append a list with another list in Python ?
> can we append a list with another list in Python ? using the normal routine
> syntax but with a for loop ??
x = [1,2,3]
y = [10,20,30]
x.extend( y )
this will give you [1,2,3,10,20,30] which I guess is what you want.
Psss, psss, put it down! - http://www.cafepress.com/putitdown
|All times are GMT. The time now is 02:10 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.