Python/basics.py

4 lines
120 B
Python
Raw Normal View History

2020-02-03 13:37:58 +00:00
def positive(numbers):
return([positive for positive in numbers if positive > 0])
2020-01-29 13:54:51 +00:00
2020-02-03 13:37:58 +00:00
print(positive([-5, 3, -1, 101]))