fork download
  1. def count():
  2. def f(j):
  3. def g():
  4. return j*j
  5. return g
  6. fs=[]
  7. for i in range(1,4):
  8. fs.append(f(i))
  9. return fs
  10. f1,f2,f3=count()
  11. print(f1())
  12.  
  13. # your code goes here
  14. # your code goes here
Success #stdin #stdout 0.08s 14100KB
stdin
Standard input is empty
stdout
1