tag:blogger.com,1999:blog-3531969847869413627.post7847858384473809931..comments2023-07-05T07:05:39.753-04:00Comments on Boduch's Blog: Building Python ListsAdam Boduchhttp://www.blogger.com/profile/00484502507931628726noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-3531969847869413627.post-59688130520835872842009-09-01T02:05:19.421-04:002009-09-01T02:05:19.421-04:00Hi, saw your blog on Proggit.
Good post, but you ...Hi, saw your blog on Proggit.<br /><br />Good post, but you didn't mention that the basis of your example, ie, list_obj=[i for i in range(0,10)], is called a "list comprehension".<br /><br />Also, using a simple range will lead to the same result as your example.<br /><br />>>> [i for i in range(0,10)]<br />[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<br />>>> range(0,10)<br />[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<br />>>><br /><br />Cheers, BillBillnoreply@blogger.com