Complete the Order
Python
15 pts
Complete the Order
A café in Asmara starts an order like this:
order = {"customer": "Selam", "item": "tea"}
- Add
"quantity"with the value2using square brackets. - With one
update(), add"city":"Asmara"and"paid":False. - Print
order, then print its length.
Expected output:
{'customer': 'Selam', 'item': 'tea', 'quantity': 2, 'city': 'Asmara', 'paid': False}
5
Checklist
- Add
"quantity"toorderwith square brackets. - Add
"city"and"paid"with oneupdate(), after the quantity. - Print
order, then its length.
🔑 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.
