• Sum-numbers

 

I would like to give some feedback about sum- number This is my code: def sum_numbers(text: str) -> int: suma = 0 for i in range(len(text)): if float(i) == True: suma += i else: suma += 0 return suma

I don't know where I have mistakes.

From: https://py.checkio.org/mission/sum-numbers/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36