Question: Assume the following Python program was executed using static scoping rules. What value of X is printed in function fun1 after fun3 is called? Under

Assume the following Python program was executed using static scoping rules. What value of X is printed in function fun1 after fun3 is called? Under dynamic scoping rules, what value of X is printed in function fun1 after fun3 is called? Put your answers on separate lines with static scoped X on the first line and dynamic scoped X on the second line def fun1) print(X) def fun2) fun1() def fun3 ) fun2() fun3()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
