Re: beginer question of list comprehensions

2006-03-23 Thread Larry Bates
Echo wrote: > Ok, this is the first list comprehension that I have done. > Surprisinly, it works for the most part. > The problem with it is that it returns a list with two lists in it, > instead of just one list. Can anyone tell me what I am doing wrong or > how to fix it. > > Here is my code: >

beginer question of list comprehensions

2006-03-23 Thread Echo
Ok, this is the first list comprehension that I have done. Surprisinly, it works for the most part. The problem with it is that it returns a list with two lists in it, instead of just one list. Can anyone tell me what I am doing wrong or how to fix it. Here is my code: [t for t in (__import__(m, g