What is printed when the statement printfunb2 funa1 is


Question:(a) Two functions are defined as follows: 

     def funA(x):
         print("A: x = ", x)
         return 2*x
     def funB(y):
         print("B: y = ", y)
         return funA(y) + 1

What is printed when the statement print(funB(2 + funA(1))) is executed? (You must write down all output, in the correct order. Make sure you clearly indicate where there are line breaks.)

Solution Preview :

Prepared by a verified Expert
Business Management: What is printed when the statement printfunb2 funa1 is
Reference No:- TGS02707639

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)