• I solved the task , but auto-test shows an fail

 

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)

.