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.
1 parent 7a1901f commit fd448daCopy full SHA for fd448da
1 file changed
Doc/tutorial/datastructures.rst
@@ -181,7 +181,7 @@ We can obtain the same result with::
181
182
squares = [x**2 for x in range(10)]
183
184
-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)))``,
185
but it's more concise and readable.
186
187
A list comprehension consists of brackets containing an expression followed
0 commit comments