# Version: October 19, 2021 # Author: James Tam # Learning objective: tracing a more complex trace involving: parameters, # scope, locals and globals. Also, it serves to illustrate how style (poor) # can affect the readability and understandability of code. def end(): print("Is", end=" ") x = 12 end() print("this", end=" - ") def d(): x = 22 x = y return(x) def a(): pass y = 23 def c(): x = 21 y = 888 print(x,y) print(x,y) def b(): print("start?") def e(a,b,c): global x print(a,b,c) a = 7 b = -13 c = 888 x = b print(a,b,c) return(a) def start(): global y print("the", end =" ") b() print(x,y) y = 19 c() print(x,y) d() y = d() z = x y = e(x,y,z) print(x,y,z) start()