0 out of 68 challenges solved

Calculate the factorial of the given number

Question:
Write a function called calculate_factorial that takes an integer as input and returns the factorial of that number. Use a for loop with the math library to perform the factorial calculation.

Example:
Input: 5
Output: 120

import math

def calculate_factorial(number):
    """
    Calculates the factorial of the given number.

    Args:
        number (int): The input number.

    Returns:
        int: The factorial of the number.
    """
    # TODO: Implement the calculate_factorial function
    pass