Javatpoint Logo
Javatpoint Logo

Python Program to Find the Factorial of a Number

What is factorial?

Factorial is a non-negative integer. It is the product of all positive integers less than or equal to that number for which you ask for factorial. It is denoted by exclamation sign (!).

For example:

The factorial value of 4 is 24.

Note: The factorial value of 0 is 1 always. (Rule violation)

See this example:

The following example displays the factorial of 5 and -5.


Python Condition And Loops7

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA