Skip to content

Commit af18b50

Browse files
committed
Resolve issues identified during pilot testing
1 parent 87eb760 commit af18b50

17 files changed

Lines changed: 6 additions & 1323 deletions

.DS_Store

0 Bytes
Binary file not shown.

_sources/.DS_Store

0 Bytes
Binary file not shown.

_sources/_hidden/mc_nested-nt.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Practice
7878
+------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+
7979

8080
~~~~
81-
def get_average_score(dict_category_item, lst_quantity):
81+
def get_average_score(student_information):
8282

8383

8484

@@ -102,6 +102,7 @@ Practice
102102

103103

104104

105+
105106
.. activecode:: w3-mooc_nested
106107
:autograde: unittest
107108
:nocodelens:

_sources/_hidden/mc_posttest.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ Please answer the following questions.
7676
7777
7878
.. activecode:: posttest-2-mooc_nested
79-
:language: python3
8079
:autograde: unittest
8180
:nocodelens:
8281
@@ -133,7 +132,6 @@ Please answer the following questions.
133132
134133
135134
.. activecode:: posttest-3-mooc_nested
136-
:language: python3
137135
:autograde: unittest
138136
:nocodelens:
139137

_sources/_hidden/mc_puzzle_bank.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,8 @@
9090
:adaptive:
9191
:practice: T
9292

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.
9895
-----
9996
def get_order_totals(orders):
10097
=====

_sources/_hidden/mc_start.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ What to do next
7474
reviewLink.href = "#"; // Prevent default navigation for now
7575
7676
reviewLink.onclick = function(event) {
77-
const consent = document.getElementById('consent');
77+
const consent_sent = document.getElementById('consent_sent');
7878
79-
if (!consent) {
79+
if (!consent_sent) {
8080
alert('Please check the consent form before moving to the next.');
8181
event.preventDefault();
8282
return false;

_sources/_hidden/mooc_nested_dict/index.rst

Lines changed: 0 additions & 89 deletions
This file was deleted.

_sources/_hidden/mooc_nested_dict/intro.rst

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)