I am new to python and this is just for personal knowledge.
So how would I design a program to take a number input N from the user and print out all the numbers from 0 to N ..
I am new to python and this is just for personal knowledge.
So how would I design a program to take a number input N from the user and print out all the numbers from 0 to N ..
This one works
n = int(input("enter a number"))
counts = 0
print (0)
while counts != n:
counts += 1
print(counts)
if counts == n:
break