fork download
  1. def lazy_sum(*args):
  2. def sum():
  3. ax=0
  4. for n in args:
  5. ax=ax+n
  6. return ax
  7. return sum
  8.  
  9. f=lazy_sum(1,3,5)
  10. print(f())
  11.  
  12. # your code goes here
  13. # your code goes here
Success #stdin #stdout 0.1s 14108KB
stdin
Standard input is empty
stdout
9