0 out of 68 challenges solved

Calculate the product of all elements in the given list

**Question:**
Write a function called `calculate_product` that takes a list of numbers as input and returns the product of all the elements in the list. Use a for loop with the `functools` module to perform the product calculation. Empty input list must return 1.

**Example:**
Input: [2, 3, 4, 5]
Output: 120
import functools

def calculate_product(numbers):
    """
    Calculates the product of all elements in the given list.

    Args:
        numbers (list): The input list of numbers.

    Returns:
        int: The product of all elements.
    """
    # TODO: Implement the calculate_product function
    pass