← Back to Dictionaries
Question 286
Raise The Bread Price
Raise The Bread Price
Increase the price of bread in the dict prices by 0.25, using the current value in the arithmetic, then print the whole dict so all three items show. Input: none. Output: one line, the printed dict with the new bread price.
Expected Output:
{'apple': 0.5, 'bread': 2.5, 'milk': 1.8}= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
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.