Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ef1fce + fd448da commit 18581efCopy full SHA for 18581ef
1 file changed
Doc/tutorial/datastructures.rst
@@ -186,7 +186,7 @@ We can obtain the same result with::
186
187
squares = [x**2 for x in range(10)]
188
189
-This is also equivalent to ``squares = map(lambda x: x**2, range(10))``,
+This is also equivalent to ``squares = list(map(lambda x: x**2, range(10)))``,
190
but it's more concise and readable.
191
192
A list comprehension consists of brackets containing an expression followed
0 commit comments