0 Comments
In python 3:
total = 0
while True:
number = int(input("Enter a number: "))
if number == -1:
break
total += number
print("Total: {}".format(total))
I hope this helps!