Mega Code Archive

 
Categories / Python / Function
 

Define and call a function inside another function

def f1():     x = 88     def f2(x=x):         print x     f2() f1()                  # prints 88