Skip to content

Commit d4eed4c

Browse files
authored
Update app.py
1 parent bc75cde commit d4eed4c

File tree

1 file changed

+7
-4
lines changed
  • exercises/13-Filter_list

1 file changed

+7
-4
lines changed

exercises/13-Filter_list/app.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
allNumbers = [23,12,35,5,3,2,3,54,3,21,534,23,42,1]
1+
all_numbers = [23,12,35,5,3,2,3,54,3,21,534,23,42,1]
22

33

44
def filter_function(items):
5-
return items % 2 ==0
6-
greater_than = list(filter(filter_function, allNumbers))
7-
print(greater_than)
5+
# Update here
6+
return items % 2 == 0
7+
8+
greater_than_ten = list(filter(filter_function, all_numbers))
9+
10+
print(greater_than_ten)

0 commit comments

Comments
 (0)