Articles → Python → Math.Factorial Function In PythonMath.Factorial Function In PythonIn this article, we will discuss the math.factorial function in Python.Purpose The math.factorial function is used to calculate the factorial of a number.Example import math print("Factorial of 5 is: ", math.factorial(5))Output Posted By - Karan Gupta Posted On - Thursday, April 18, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import math print("Factorial of 5 is: ", math.factorial(5))
Query/Feedback