Introduction: Python Program to Find the Factorial

Picture of Python Program to Find the Factorial

Python Programming

Step 1: Open Python IDLE in Your Smartphone or Computer

Step 2: Type or Copy This Python Code

Picture of Type or Copy This Python Code

c=1
e=0
n=input("Enter a number ")
j=n
for i in range(2,n+1):
c=c*i
e=1
if(e==1):
print ("{0} is the format of the given number").format(c),j

Step 3: Save Using Extension .py

for example:- factorial.py

Step 4: Run Your Program

Picture of Run Your Program

enter any number and find its factorial

Comments

About This Instructable

89views

2favorites

License:

More by nazeemnob17:Python Program to Find the Factorial Talking Computer ?Dancing Led Keyboard
Add instructable to: