Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 5th, 2013  |  syntax: Python  |  size: 0.10 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def f():
  2.     a = 5
  3.     locals()["a"] = 6
  4.     print(a)
  5.  
  6. f()
  7. b = 5
  8. locals()["b"] = 6
  9. print(b)