Question: in python please Define a function named get_sum_squares (numbers) that takes an integer list as a parameter and returns the sum of the squares of
in python please
Define a function named get_sum_squares (numbers) that takes an integer list as a parameter and returns the sum of the squares of every number in the parameter list. For example, the following code fragment: a_list = [3, 7, 1] print(get_sum_squares(a_list)) prints: 59 Note: 3*3 + 7*7 + 1*1 = 9 +49 + 1 = 59 For example: Test Result 59 220 a_list = [3, 7, 1] print(get_sum_squares(a_list)) a_list [6, 7, 1, -3, 5, -10] print(get_sum_squares(a_list)) a_list = [] print(get_sum_squares (a_list )) 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
