Question: Consider the following program: 1 def fun_a(x, y): 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 x
Consider the following program: 1 def fun_a(x, y): 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 x = x + y print('Returning from fun_a') return fun_b(x) def fun_b(y): y = y** 2 print('Returning from fun_b') return y def main(): x = 1 y = 2 z = fun_a(x, y) print('All done!') main () For each of the following questions, indicate the value of the variable at the given line. If a variable is not in scope, answer with "N/A". What is the value of x at line 3? What is the value of y at line 3? What is the value of x at line 8? What is the value of y at line 8? What is the value of x at line 15? What is the value of y at line 15? What is the value of z at line 15?
Step by Step Solution
There are 3 Steps involved in it
Based on the provided program here are the values of the variables at the ... View full answer
Get step-by-step solutions from verified subject matter experts
