I need some help with the logic of a program. What I am trying to do:
Write a program with a loop that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been entered, the program should display the sum.
keep_going = ' '
max = ()
total = 0.0
print('This program will add numbers together until a negative number is entered.')
print('It will then show the total of the numbers entered.')
while keep_going != (-):
number = int(input('Enter a number: '))
total = total + number
print('The total is', total)
Where am I going wrong?