Know about this?
x = [i * 2 for i in [1, 2, 3, 4]]
Be careful. The scope of “i” is not limited to the expression it is used in.
Tags: list comprehension, Python
Know about this?
x = [i * 2 for i in [1, 2, 3, 4]]
Be careful. The scope of “i” is not limited to the expression it is used in.
Tags: list comprehension, Python
This entry was posted
by Ivan Vučica
on Tuesday, June 1st, 2010 at 2:16 pm
and is filed under programming, Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed. Personal web site
You can leave a response, or trackback from your own site.

HEY! YOU THERE!
Support me + Have fun!
Get my game, Zombie Ball, for your iPhone! FREE on the App Store
More info, trailer, screenshots
---------------
ivucica blog