fruit_prices is a dictionary with fruit names as keys and prices as values.
Write increase_prices(fruit_prices) that increases the price of every fruit
by 20 percent and rounds each new price to two decimal places. Modify the
dictionary in place and return nothing.
Example
fruit_prices = {'Apple': 2, 'Banana': 3.5}
After the call, fruit_prices is {'Apple': 2.4, 'Banana': 4.2}.
Implement this function:
def increase_prices(fruit_prices: dict) -> None:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: fruit_prices.
Input
{'Apple': 2, 'Banana': 3.5}
Output
{'Apple': 2.4, 'Banana': 4.2}