Skip to content

Commit a824ea3

Browse files
authored
Merge pull request barbarer#173 from xinyinghou/master
FIxed the warning in puzzle_bank page
2 parents 116cdbf + cfef25a commit a824ea3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

_sources/_hidden/mooc_nested_dict/puzzle_bank.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
:practice: T
6363

6464
Finish the function ``get_vegetarian_menu(menu_items):`` below:
65-
- It takes a list of tuples ``menu_items`` as input, each tuple contains ``(name, category, price, is_vegetarian)``.
66-
- It returns a new nested dictionary that only contains the items from ``menu_items`` where ``is_vegetarian`` is ``True``.
67-
- The outer dictionary keys are ``category`` such as "Soup", "Pizza", "Pasta", "Salad".
68-
- The inner dictionary keys are ``name`` and values are ``price`` for each vegetarian item of that ``category``.
65+
- It takes a list of tuples ``menu_items`` as input, each tuple contains ``(name, category, price, is_vegetarian)``.
66+
- It returns a new nested dictionary that only contains the items from ``menu_items`` where ``is_vegetarian`` is ``True``.
67+
- The outer dictionary keys are ``category`` such as "Soup", "Pizza", "Pasta", "Salad".
68+
- The inner dictionary keys are ``name`` and values are ``price`` for each vegetarian item of that ``category``.
6969
-----
7070
def get_vegetarian_menu(menu_items):
7171
=====
@@ -90,10 +90,10 @@
9090
:practice: T
9191

9292
Finish the function ``get_vegetarian_menu(menu_items):`` below:
93-
- It takes a list of tuples ``menu_items`` as input, each tuple contains ``(name, category, price, is_vegetarian)``.
94-
- It returns a new nested dictionary that only contains the items from ``menu_items`` where ``is_vegetarian`` is ``True``.
95-
- The outer dictionary keys are ``category`` such as "Soup", "Pizza", "Pasta", "Salad".
96-
- The inner dictionary keys are ``name`` and values are ``price`` for each vegetarian item of that ``category``.
93+
- It takes a list of tuples ``menu_items`` as input, each tuple contains ``(name, category, price, is_vegetarian)``.
94+
- It returns a new nested dictionary that only contains the items from ``menu_items`` where ``is_vegetarian`` is ``True``.
95+
- The outer dictionary keys are ``category`` such as "Soup", "Pizza", "Pasta", "Salad".
96+
- The inner dictionary keys are ``name`` and values are ``price`` for each vegetarian item of that ``category``.
9797
-----
9898
def get_order_totals(orders):
9999
=====

0 commit comments

Comments
 (0)