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. print(lazy_sum(1,3,5))
  10.  
  11. # your code goes here
Success #stdin #stdout 0.08s 14088KB
stdin
Standard input is empty
stdout
<function lazy_sum.<locals>.sum at 0x1534b7f9eb60>