Jessie M.

asked • 02/08/21

create new python dictionary that holds the following items

The below, python dictionary (my_fruits_dic) holds fruits and their price.


my_fruits_dic = {

    "Fruit": "Price", 

    "apple": 6.44, 

    "banana": 0.77, 

    "orange": 3.44,

}


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

(1) Add a new item "berries" with the value {blackberry: 1.24, blueberry: 3.14}.

Print myDic. (This new dictionary will be added without the berries key. It needs to be added as a nested dictionary under berries key).


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.