Python Program to Find Factorial of the Number Using in-built Function
# import python math library import math num = 5 print("Factorial of", num, "is", math.factorial(num))
Output:
Factorial of 5 is 120
# import python math library import math num = 5 print("Factorial of", num, "is", math.factorial(num))
Factorial of 5 is 120