Loading...
Loading...
Loading...
An app sends order amounts as a JSON list. Parse the text and print the sum.
Example
Input
[250, 400, 99]
Output
749
250 + 400 + 99.
Try the problem first. Open one hint at a time.
json.loads turns the line into a Python list.
sum works on a list of numbers.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor