csc-python-solutions/13/3 - It's Natural.py

9 lines
152 B
Python
Raw Normal View History

2021-02-18 07:41:22 +00:00
def naturalNumbers(n):
out = []
for i in range(n):
out += [i+1]
return out
2021-02-18 07:41:39 +00:00
# def naturalNumbers(n):
# return [i+1 for i in range(n)]