From 494101e0a60264cda5f2cbd556bd497ac6512e9f Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 08:41:22 +0100 Subject: [PATCH] Create 3 - It's Natural.py --- 13/3 - It's Natural.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 13/3 - It's Natural.py diff --git a/13/3 - It's Natural.py b/13/3 - It's Natural.py new file mode 100644 index 0000000..590e5f3 --- /dev/null +++ b/13/3 - It's Natural.py @@ -0,0 +1,8 @@ +def naturalNumbers(n): + out = [] + for i in range(n): + out += [i+1] + return out + +#def naturalNumbers(n): +# return [i+1 for i in range(n)]