Loading...
Loading...
Loading...
A shop keeps the amount of each order of the day in a list. Read the amounts and print their total.
Example
Input
3 250 480 120
Output
850
250 + 480 + 120.
Try the problem first. Open one hint at a time.
Start a total at 0 and add each value as you go through the list.
Convert each piece of text to an int before adding. The built-in sum also works.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor