Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18581ef

Browse files
committed
Close issue #16073: merge fix from 3.2.
2 parents 8ef1fce + fd448da commit 18581ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ We can obtain the same result with::
186186

187187
squares = [x**2 for x in range(10)]
188188

189-
This is also equivalent to ``squares = map(lambda x: x**2, range(10))``,
189+
This is also equivalent to ``squares = list(map(lambda x: x**2, range(10)))``,
190190
but it's more concise and readable.
191191

192192
A list comprehension consists of brackets containing an expression followed

0 commit comments

Comments
 (0)