diff options
-rw-r--r-- | Misc/NEWS | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ from another list (or lists). The simplest form is: [<expression> for <variable> in <sequence>] -For example, [x**2 for i in range(4)] yields the list [0, 1, 4, 9]. +For example, [i**2 for i in range(4)] yields the list [0, 1, 4, 9]. This is more efficient than map() with a lambda. You can also add a condition: |