Discounts

Prices for some items on sale can be stored in a dictionary. Write a
function discount 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: dict’s are mutable). Item
names are arbitrary strings. Prices are in whole euros (namely int) 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-25T19:40:59.250Z

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