Create 3 - It's Natural.py

This commit is contained in:
Lukas Baumann 2021-02-18 08:41:22 +01:00 committed by GitHub
parent 2c6fb29652
commit 494101e0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
13/3 - It's Natural.py Normal file
View File

@ -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)]