9 lines
150 B
Python
9 lines
150 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)]
|