I'm starting to program with python language, and one of my exercises is to do the factorial number of a number n This is my code:
result=1
n=input("Deme un numero \n")
for i in range (1,n):
result=result*i
print(result)
my question is how do I write the for range in the part of (1, n ) if 'n' is the number that I must reach or stop the for