diff --git a/basics.py b/basics.py index 15aaafe..28e3ef9 100644 --- a/basics.py +++ b/basics.py @@ -1,4 +1,4 @@ -temps = [221, 234, 340, 230, 9999] +def numbers_only(jumbles): + return([jumble for jumble in jumbles if type(jumble) == int]) -print([temp / 10 for temp in temps if temp < 9999]) - \ No newline at end of file +print(numbers_only(["Hello", 1, 3, "Ok"])) \ No newline at end of file