Skip to content

Commit a5c1481

Browse files
author
boraxpr
committed
bite 107 bugfix
1 parent 1ce5e57 commit a5c1481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 107/list_comprehensions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ def filter_positive_even_numbers(numbers):
22
"""Receives a list of numbers, and returns a filtered list of only the
33
numbers that are both positive and even (divisible by 2), try to use a
44
list comprehension."""
5-
numbers = [i for i in numbers if i!=0 and i%2==0]
5+
numbers = [i for i in numbers if i!=0 and i%2==0 and i>0]
66
return numbers
77

88
# filter_positive_even_numbers([0,1,2,3,4,5,6,7,8,9])

0 commit comments

Comments
 (0)