From 5df20c7303ff2bb1c60dba7832f5d01ebe5740dd Mon Sep 17 00:00:00 2001 From: David Avery Date: Fri, 31 Jan 2020 12:07:01 +0000 Subject: [PATCH] Exercise 61 --- basics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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