# This program computes the factorial of a number. print "This program computes the factorial of an integer." number = input("Enter the integer: ") factorial = 1 for index in range(number): factorial = factorial * (index + 1) print "The factorial of", number, "is", factorial