bonono at gmail.com wrote: >>You can use i**=2 for i in range(1000) instead > > > I don't think one can use assignment in list comprehension or generator > expression. The limitation is very much like lambda. > i**2