Skip to content

Commit c072526

Browse files
committed
fix the filter function
1 parent d7c9381 commit c072526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_sandbox_finished/map, filter and reduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
print(mapping_the_l1)
1010

1111

12-
filtering_the_l1 = list(filter(lambda x: x%2 ==0)) #FILTER FUNCTION FILTERS THE LIST ACCORDING TO OUR WISH
12+
filtering_the_l1 = list(filter(lambda x: x%2 ==0, l1)) #FILTER FUNCTION FILTERS THE LIST ACCORDING TO OUR WISH
1313
# IN THIS CASE WE ARE FILERING THE NUMBER WHICH IS DIVISIBLE BY 2 IN l1.
1414

1515
print(filtering_the_l1)

0 commit comments

Comments
 (0)