# File: global02.py # # Binding is dynamic. So, the value # of global variable b depends on # its value during execution. # So, it matters that the *call* # test() is after the assignment # to b. It is OK, actually good, # that the definition of test() # is before the assignment to b. def test() : print("b = ", b) return b = 303 test() ''' Output from the program: b = 303 '''