Question: Write a function squared_sum in pseudocode or python that takes an array of numbers as input and outputs the following: Example call Returns squared_sum ([])
Write a function squared_sum in pseudocode or python that takes an array of numbers as input and outputs the following:
| Example call | Returns |
|---|---|
| squared_sum ([]) | 0 |
| squared_sum ([5, -2, 3]) | 38 |
| squared_sum ([-3, 4]) | 25 |
| squared_sum ([7, -1, 15, 0]) | 275 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
