Is it possible to nest functions inside of functions? If so, what purposes does it have? I have some example code below to show what I mean.
def theFunction():
print "This is a function"
def functionception():
print "Bad inception joke...."
Once again, is this possible? If so, what purposes does it serve, and how is it used?