I am still very new to python and working on a school assignment. The program should be a loop that allows the user to enter a series of number that will keep going as long as the number entered is 0 or greater. Once a negative number is entered the program should create a sum of all numbers entered. Your help is greatly appreciated, thank you!
#This program calculates the sum of multiple numbers
#Initialize accumulator
total = 0
#Calculate the sum of numbers
while keep_going >= 0:
keep_going = int(input('Enter a number: '))
total += keep_going
print(total)