scrimba
Python 101 in Bangla
38. Dictionaries Exercise (Part 01)
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

38. Dictionaries Exercise (Part 01)
AboutCommentsNotes
38. Dictionaries Exercise (Part 01)
Expand for more info
index.py
run
preview
console
print('Dictionaries Exercise Part 01: Please read the comment below -->')

"""
Exercise: Shopping with Dictionaries
#Part 1.0
You want to go for shopping. Below are three shops (dictionaries) where you can buy items from:
"""
gadgets = {'Name':'Gadget Shop','Smartphone':19000,'Laptop':49000,'Headphone':2500,'Monitor':17000, 'Speaker':12000}
music = {'Name':'Gadget Shop''Acoustic guitar':15000,'Electric guitar':30000,'Keyboard':12000,'Cajon':6000,'Harmonica':1000}
eid = {'Name':'Gadget Shop','New dress':5000,'Shoes':3000,'Masks':500}

"""
You'd have to write a code that should allow you to take one item from each store and
each item you get should be removed from the store inventory, do the same for each store,
and store the items in a shopping cart.
(hint: take user input using loops)

At end you should print all the shopping cart items (not the price) that you have purchased..
In this version you don't have to pay for stuff or add it up, so in the output say that
the items in this case are for free.
"""
Console
"Dictionaries Exercise Part 01: Please read the comment below --> "
,
/index.html
-4:26