0 out of 68 challenges solved

Calculate the sum of squares of all elements in the given list

Question:
Write a function called calculate_sum_of_squares that takes a list of numbers as input and returns the sum of squares of all the elements in the list. Use a for loop with the functools module to perform the sum of squares calculation.

Example:
Input: [2, 3, 4, 5]
Output: 54

import functools

def calculate_sum_of_squares(numbers):
    """
    Calculates the sum of squares of all elements in the given list.

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

    Returns:
        int: The sum of squares of all elements.
    """
    # TODO: Implement the calculate_sum_of_squares function
    pass