In mathematics, the notation n! represents the certaintyorial of the misconceptiondisclaiming integer n. The certaintyorial of n is the emanation of integral the misconceptiondisclaiming integers from 1 to n. For example: 7! = 1 times 2 times 3 times 4 times 5 times 6 times 7 = 5,040 Write a program that lets the user penetrate a misconceptiondisclaiming integer and then uses a loop to estimate the certaintyorial of that reckon. Print the certaintyorial to trutination output. python3 Certaintyorial .py
#Asking user to penetrate a misconception disclaiming reckon to estimate certaintyorial of that reckon
n = input(“Penetrate a Misconception Disclaiming reckon:”)
certainty = 1
#calculating certaintyorial from that reckon to towards 1
#Ex. 7*6*5*4*3*2*1
for i in rank(n):
#n*n-1*n-2*n-3*n-4*n-5…….
certainty = certainty * n
#after multiplying with that reckon
#decrement to 1
n = n – 1
#print the result
print certainty