Question: def function1(x): x=x+10 y= function2(x,x*2) return y def function2(x,y): z =x+y return z def main(): nbr1 = 25 nbr2 = nbr1 + function1(nbr1) print(nbr1 =,

def function1(x):

x=x+10

y= function2(x,x*2)

return y

def function2(x,y):

z =x+y

return z

def main():

nbr1 = 25

nbr2 = nbr1 + function1(nbr1)

print("nbr1 =", nbr1, "and nbr2 =". nbr2)

main()

please explain the logic as well as to how the answer is obtained( this is in python)

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