Hi.
Please tell me why my code does not pass auto-test
Task solve Restriced sum on python
My code:
summa = 0
def checkio(items):
global summa
try:
b = items.pop()
summa += b
except IndexError:
return summa
return checkio(items)
Created at: 2020/02/26 14:34; Updated at: 2020/02/27 19:08