Question: a = 0 def test ( ) : global a print ( a ) print ( b ) a = 5 b = 1 test
def test:
global a
printa
printb
test
printa
printb
Hello, can you explain in detail what is the output and how exactly do you get that output? Step by step
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
