1 #!/usr/bin/env python 2 3 def f(a): 4 def g(): 5 return a 6 return g 7 8 result_1 = f(1)() 9 result_2 = f(2)() 10 11 # vim: tabstop=4 expandtab shiftwidth=4