# File: global03.py # # We can clarify that b is # global using be declaring it # to be global explicitly. # Good use of global variables is # very rare. If you need to use global # variables, you should declare it. # You are not allowed to use globals # in CMSC201. def test() : global b # explicitly declare b global print("b = ", b) return b = 303 test() ''' Output from the program: b = 303 '''