fact=1numb=input("Enter number: ")#Enter a long numberforjinrange(numb,0,-1):#factorial is numb * numb-1 * numb-2 * numb-3 and so onfact*=jprint"Factorial is:",fact#display factorial
Enter number: 100
Factorial is: 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000