0 out of 68 challenges solved

Calculate the square root of each element in the given list

Question:
Write a function called calculate_square_root that takes a list of numbers as input and returns a new list where each element is the square root of the corresponding element in the input list. Use a for loop with the math library to perform the square root calculation.

Example:
Input: [4, 9, 16, 25]
Output: [2.0, 3.0, 4.0, 5.0]

import math

def calculate_square_root(numbers):
    """
    Calculates the square root of each element in the given list.

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

    Returns:
        list: A new list with the square root of each element.
    """
    # TODO: Implement the calculate_square_root function
    pass