Discounts

Prices for some items on sale can be stored in a dictionary. Write a function discountdiscount 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: dictdict’s are mutable). Item names are arbitrary strings. Prices are in whole euros (namely intint) both before and after the discount and, therefore, they must be rounded after applying the discount.

Observation

If you use doctests, remember to ensure that the Jutge submission does not run them.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T16:49:00.758Z

© Jutge.org, 2006–2026.
https://jutge.org