fork download
  1. zen = 1
  2. zen2 = True
  3. def test():
  4. if zen == 1 and zen2 == True:
  5. print ("hello")
  6. global zen2
  7. zen2 = False
  8. else:
  9. print ("hello 2")
  10.  
  11. test()
Success #stdin #stdout #stderr 0.02s 27816KB
stdin
Standard input is empty
stdout
hello
stderr
./prog.py:6: SyntaxWarning: name 'zen2' is used prior to global declaration
  global zen2