You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/_hidden/mc_post_survey.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Thank you!
2
2
===========
3
3
4
-
That's it! You have completed the practice problems and the post-survey. Your feedback is valuable to us, and we appreciate your time and effort in participating in this study.
4
+
That's it! You have completed the practice problems and the post-survey (if applicable). Your feedback is valuable to us, and we appreciate your time and effort in participating in this study.
5
5
6
6
We hope you found the practice problems helpful in improving your understanding of nested dictionaries in Python.
Copy file name to clipboardExpand all lines: _sources/_hidden/mc_puzzle_bank.rst
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,11 +90,8 @@
90
90
:adaptive:
91
91
:practice: T
92
92
93
-
Finish the function ``get_vegetarian_menu(menu_items):`` below:
94
-
- It takes a list of tuples ``menu_items`` as input, each tuple contains ``(name, category, price, is_vegetarian)``.
95
-
- It returns a new nested dictionary that only contains the items from ``menu_items`` where ``is_vegetarian`` is ``True``.
96
-
- The outer dictionary keys are ``category`` such as "Soup", "Pizza", "Pasta", "Salad".
97
-
- The inner dictionary keys are ``name`` and values are ``price`` for each vegetarian item of that ``category``.
93
+
Finish the function ``get_order_totals()``, that takes a list of tuples and returns a nested dictionary with the same information. Each tuple includes 3 values; the first is the person's name, the second is item name, and the third is the quantity.
94
+
- Note that there may be more than one tuple for the same person and item - your dictionary should total all the quantities for the same person and item.
0 commit comments