1. Home
  2. Python
  3. Python Examples
  4. Python – Find Factorial of Number

Python – Find Factorial of Number

Python Program to Find Factorial of a Number

Q. Write a Python program to take input of a number and find the factorial of that number.

Example:

A sample Python program to calculate factorial of a given number. You can also take input of a number from user and calculate the factorial.

Output:

The factorial of 5 is 120
Tags
Was this article helpful to you? Yes No
Advertisement