I'm trying to write a simple factorial program and am unsure at what is
wrong with it. Why Can't I go *factorial = factorial * number* where
factorial and number are both integers?

#Factorial program

print "Factorial finder"
number = input("Please enter a non-negative integer: "
    for number in range(number, 1)
    factorial = (factorial * number)

print "Factorial:", factorial

Thanks Eddie [?]

<<330.gif>>

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to