Find Factorial

Beginner

Find Factorial

Hello, young coders! Did you know that there's something very interesting about numbers called factorials? A factorial of a non-negative integer is the product of all positive integers less than or equal to that number.

For example, the factorial of 5 is calculated as:

5! = 5 × 4 × 3 × 2 × 1 = 120

The factorial of 0 is a special case and is defined as 1.

Your mission, should you choose to accept it, is to write a function called find_factorial that takes a non-negative integer as its argument and returns its factorial.

Examples:

find_factorial(5) # returns 120 find_factorial(3) # returns 6 find_factorial(0) # returns 1

Are you ready? Let's calculate some factorials!

Geek
Inputs

Arg 1:

5
Expected Output
120
Actual Output
Find Factorial [beginner] | Coding for Kids