Following are the python program to calculate the factorial value:
factorial=1 #declare a variable.
number=int(input("Enter a positive integer:")) #input a number.
while (number>0): #loop
factorial= factorial*number # holding value in factorial variable
number=number-1
print('=',factorial) #print value.
Program Explanation:
The description of the above python program can be given as:
Output:
Enter a positive integer: 6
= 720
Find out more information about the factorial here:
brainly.com/question/1483309