CJCoding With Joseph
15free / daySign inCreate account

Total Of All Values

Add up every value in the dict stock with a loop: start a total at 0 and, for each key, add the value stored under it. Print the result in the form Total: <value>. Input: none. Output: one line with the whole-number total.

Expected Output:

Total: 82

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Dictionaries
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.