diff --git a/basics.py b/basics.py index 28e3ef9..35f8b93 100644 --- a/basics.py +++ b/basics.py @@ -1,4 +1,4 @@ -def numbers_only(jumbles): - return([jumble for jumble in jumbles if type(jumble) == int]) +def positive(numbers): + return([positive for positive in numbers if positive > 0]) -print(numbers_only(["Hello", 1, 3, "Ok"])) \ No newline at end of file +print(positive([-5, 3, -1, 101])) \ No newline at end of file