Name: Anonymous 2011-03-26 8:19
In the language of your choice list in order of frequency bi-grams and tri-grams posted to
/prog/.
/prog/.
a = 3
def foo():
a = 2
foo() # foo should set the outer a to 2
print a # so this should print '2'
a = 3
def foo():
globals()['a'] = 2
foo() # foo should set the outer a to 2
print a # so this should print '2'