Skip to content

Instantly share code, notes, and snippets.

@JimDennis
Created June 29, 2015 00:43
Show Gist options
  • Save JimDennis/430c27d3a1d4e24413c9 to your computer and use it in GitHub Desktop.
Save JimDennis/430c27d3a1d4e24413c9 to your computer and use it in GitHub Desktop.
foo = 1
def bar():
global foo
print foo
foo = 2
print foo
bar()
print foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment