fork download
  1. status = 0
  2.  
  3. def my_function():
  4. global status # Needed to modify global copy of globvar
  5. status = 1
  6.  
  7. my_function()
  8. print status # Should be 1
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
1