csc-python-solutions/13/3 - It's Natural.py
2021-02-18 08:41:39 +01:00

9 lines
152 B
Python

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