Prices for some items on sale can be stored in a dictionary. Write a function that receives such a dictionary and modifies it in such a way that the prices have been discounted a 10%. The function must return the modified dictionary (remember: ’s are mutable). Item names are arbitrary strings. Prices are in whole euros (namely ) both before and after the discount and, therefore, they must be rounded after applying the discount.
If you use doctests, remember to ensure that the Jutge submission does not run them.
Author: José Luis Balcázar
Generation: 2026-01-25T16:49:00.758Z
© Jutge.org, 2006–2026.
https://jutge.org