I've got a large function, inside which are nested a few functions, as follows:
def primary(input):
def second():
print "something"
def third():
treasure = "Success!"
print treasure
The third() function defines the treasure variable and prints it. How should I change the scope of this variable so that I can print treasure from the interpreter without having to invoke any functions, but still allowing the functions to access/change it?