Coding Exercise #18
🌶️
Create a while-loop that continues to prompt the user to input a number until they enter a negative number. After the loop ends, print the total sum of all entered numbers.
total = 0
number = 0
while number >= 0:
...
Click below to complete the code in the online IDE:
Here is the correct, complete code:
Subscribe below to get a new Python project or exercise daily. Upgrade to our paid plan to view all code solutions for every project and exercise.


