Question: Consider the polynomial function f ( x ) = x 2 + 4 6 . Write a function int returnSum ( data ) in Python

Consider the polynomial function f(x)=x2+46.
Write a function int returnSum(data) in Python that
computes the function value of the function f(x) for all elements that are passed by the list data and
sums them up and
returns this sum.
For example:
Test Result
a = returnSum([2,3])
print(a)
105
Answer:(penalty regime: 0%)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!