fork download
  1. # your code goes here
  2. def f(l):
  3. if l == 0:
  4. return 0
  5. return l + f(l-1)
  6.  
  7.  
  8. x = f(10)
  9. print(x)
Success #stdin #stdout 0.09s 14068KB
stdin
Standard input is empty
stdout
55