total = 0
while True:
    number = int(eval(input('Enter a number or 0 to quit: ')))
total = total + number
if number == 0:
    break
print(('The total number is', total))
Добавьте номера и выйдите с часовым