the high-level data types allow you to express complex operations in a
single statement;
\item
-statement grouping is done by indentation instead of begin/end
+statement grouping is done by indentation instead of beginning and ending
brackets;
\item
no variable or argument declarations are necessary.
>>> float(a)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
-TypeError: can't convert complex to float; use e.g. abs(z)
+TypeError: can't convert complex to float; use abs(z)
>>> a.real
3.0
>>> a.imag
[8, 12, -54]
\end{verbatim}
+List comprehensions are much more flexible than \function{map()} and can be
+applied to functions with more than one argument and to nested functions:
+
+\begin{verbatim}
+>>> [str(round(355/113.0, i)) for i in range(1,6)]
+['3.1', '3.14', '3.142', '3.1416', '3.14159']
+\end{verbatim}
+
To make list comprehensions match the behavior of \keyword{for}
loops, assignments to the loop variable remain visible outside
of the comprehension: