total = 0
while True:
    number = int(eval(input('Enter a number or 0 to quit: ')))
if number == 0:
    break
total = total + number
print(('The total number is', total))
Add numbers and exit with a sentinel