Find factorial of a number in Python

def find_factorial(num):
    result = 1
    count = 1
    while count <= num:
        result *= count
        count += 1
    return result
BETA Snippet explanation automatically generated by OpenAI:

Here is what the above code is doing:
1. Assigns 1 to result.
2. Assigns 1 to count.
3. While count is less than or equal to num, do the following:
a. result is equal to itself multiplied by count.
b. count is incremented by

Snippet By Jothin kumar

·

Created January 28th, 2022

·

Report Snippet