Question: python 2. (5 points) what will be the output of the program? Please explain it in details. 1 a 2. def fun1(): a - 2
2. (5 points) what will be the output of the program? Please explain it in details. 1 a 2. def fun1(): a - 2 4 def fun2(): 5 print(100) print(a) 7 fun2() 9. def fun2(): 10 global a a - 3 12 print(200) 13 14 fun1() 15 print(a) 16 fun2 17 print(a) 8 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
