Flow controls: Loops · 23 / 26 Exercise Easy

Infinite number sum

Objective

Create a Python program that requests numbers from the user and displays their sum. The program will continue requesting numbers until the user enters 0. When the program finishes, it will display Sum completed.

Input
7
4
22
-8
6
0
Output
7
11
33
25
31
Sum completed

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise