Question: Function calc _ sum ( ) was copied and modified to form the new function calc _ product ( ) . Which line of the

Function calc_sum() was copied and modified to form the new function calc_product(). Which line of the new function contains an error?
def calc_sum (a,b) :
s=a+b
return s
def calc_product (a,b) : # Line 1
p=a*b #Line 2
return s, #ine 3
a. Line 1
b. Line 2
c. Line 3
d. None of the lines contains an error
 Function calc_sum() was copied and modified to form the new function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets analyze the function calcproducta b Line 1 def calcproducta b This line ... View full answer

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 Databases Questions!