summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlfredo Canziani <alfredo.canziani@gmail.com>2016-03-30 11:24:05 -0400
committerAlfredo Canziani <alfredo.canziani@gmail.com>2016-03-30 11:24:05 -0400
commit6248cd1f84401548b80b48c9f1c4b55502c20095 (patch)
treee3e33b3a258d1de1ba4eea7e86da93383b3827d2
parent9dca295c055502d333e2ab1f4a1f9ae6f39f4b9e (diff)
Update python3.html.markdown
The same happens for `filter`. ```pythob filter(lambda x: x > 5, [3, 4, 5, 6, 7]) <filter at 0x110567320> list(filter(lambda x: x > 5, [3, 4, 5, 6, 7])) [6, 7] ```
-rw-r--r--python3.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 7864ae3f..c2454076 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -592,7 +592,7 @@ add_10(3) # => 13
list(map(add_10, [1, 2, 3])) # => [11, 12, 13]
list(map(max, [1, 2, 3], [4, 2, 1])) # => [4, 2, 3]
-filter(lambda x: x > 5, [3, 4, 5, 6, 7]) # => [6, 7]
+list(filter(lambda x: x > 5, [3, 4, 5, 6, 7])) # => [6, 7]
# We can use list comprehensions for nice maps and filters
# List comprehension stores the output as a list which can itself be a nested list