Oct-18-2017, 08:43 PM
int() doesn't convert the value in place, it returns the converted value. So you need to assign that returned value back to fact (
fact = int(fact)
). You can also convert it when it comes out of input: fact = int(input())
.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures