Thursday, February 28, 2008

5. Data Structures

5. Data Structures: "List comprehensions are much more flexible than map() and can be applied to complex expressions and nested functions:

[str(round(355/113.0, i)) for i in range(1,6)]
['3.1', '3.14', '3.142', '3.1416', '3.14159']"