Describe a Shop
Python
20 pts
Describe a Shop
Merhawi owns a small shop in Keren. Create a dictionary called shop with exactly these five keys:
"owner":"Merhawi""city":"Keren""open_days":6(an integer)"products": a list["bread", "milk", "tea"]"has_delivery":False(a boolean)
Then print three lines: the number of keys in shop, the products list, and the number of products (use len() on shop["products"]).
Expected output:
5 ['bread', 'milk', 'tea'] 3
Checklist
- Create a dictionary called
shopwith exactly five keys. - Give
"owner","city"and"open_days"the right values and types. - Store the products as a list and the delivery option as a boolean.
- Print the number of keys, the products list and the number of products.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
