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
Success #stdin #stdout 0.07s 14088KB
stdin
Standard input is empty
stdout
<function count.<locals>.f.<locals>.g at 0x153159632160>