Skip to content

Commit e9a45f5

Browse files
committed
Updated the materials based on the feedback
1 parent ab79192 commit e9a45f5

9 files changed

Lines changed: 169 additions & 162 deletions

File tree

_sources/_hidden/mooc_nested_dict/intro.rst

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Introduction to Problem Types
2-
=============================
2+
===============================
33

44
Please read the following, watch the videos, and try to solve the problems.
55

66

77
Solving Mixed-up Code Problems
8-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99

1010
If you see a problem like the one below you will need to put the mixed-up
1111
code in the correct order on the right side. You
@@ -103,8 +103,8 @@ See the video below for an example.
103103
.. youtube:: w9hTOJ7iJpE
104104
:divid: mooc_nested-write-code-video-ex
105105
:optional:
106-
:width: 1020
107-
:height: 826
106+
:width: 650
107+
:height: 415
108108
:align: center
109109

110110
Finish writing the code for the following problem.
@@ -138,24 +138,11 @@ Finish writing the code for the following problem.
138138

139139
myTests().main()
140140

141-
.. parsonsprob:: intro-sample-puzzle-mooc_nested
142-
:numbered: left
143-
:adaptive:
144-
:practice: T
145-
146-
Write a function called ``triple(num)`` that takes a number ``num`` and
147-
returns the number times 3. For example, ``triple(2)`` should return 6 and
148-
``triple(-1)`` should return -3.
149-
-----
150-
def triple(num):
151-
=====
152-
return num * 3
153-
154141

155142
Solving Write Code Problems with an Adaptive Mixed-up Puzzle as Scaffolding
156-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157144
If you see a problem like the one below, you will need to write code. You can go to the **toggle bar** above the problem description to open a mixed-up puzzle that will help you write the code.
158-
The mixed-up puzzle will have blocks of code that you can drag and drop to create a solution. You can also use the "Help me" button to get additional assistance if needed.
145+
The mixed-up puzzle will have blocks of code that you can drag and drop to create a solution. You can also use the "Help me" button to get additional assistance within the puzzle if needed.
159146

160147
.. selectquestion:: intro-sample-toggle-mooc_nested
161148
:fromid: intro-sample-write-code-triple-mooc_nested, intro-sample-puzzle-mooc_nested

_sources/_hidden/mooc_nested_dict/nested-nt.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Practice
2-
=========
2+
=============
33

44
.. raw:: html
55

_sources/_hidden/mooc_nested_dict/nested-wt.rst

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Practice
2-
=========
2+
=============
33

44
.. raw:: html
55

@@ -65,8 +65,35 @@ Practice
6565
:toggle: lock
6666
6767
68+
Post-Survey
69+
=============
70+
71+
.. poll:: satisfication_mooc-nested
72+
:option_1: Very low satisfaction
73+
:option_2: Low satisfaction
74+
:option_3: Neither low or high satisfaction
75+
:option_4: High satisfaction
76+
:option_5: Very high satisfaction
77+
:results: instructor
78+
79+
From 1 (Very low satisfaction) to 5 (Very high satisfaction), rate your level of <b>satisfaction with the help provided</b> (this refers to the mixed-up puzzle in the toggle bar).
80+
81+
.. shortanswer:: satisfication_explain_mooc-nested
82+
83+
Please explain the reason for your satisfication choice in the box.
84+
85+
86+
.. shortanswer:: end_explain_mooc-nested
87+
88+
Please skip this question if you used the "Mixed-up puzzle in the toggle bar" at least once.
89+
90+
If you did not use the help at all when solving the practice problems, please explain why.
91+
92+
93+
94+
6895
What to do next
69-
===============
96+
=================
7097
7198
.. raw:: html
7299

_sources/_hidden/mooc_nested_dict/post_survey.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
Post-Survey
2-
===========
3-
4-
.. poll:: satisfication_mooc-nested
5-
:option_1: Very low satisfaction
6-
:option_2: Low satisfaction
7-
:option_3: Neither low or high satisfaction
8-
:option_4: High satisfaction
9-
:option_5: Very high satisfaction
10-
:results: instructor
11-
12-
From 1 (Very low satisfaction) to 5 (Very high satisfaction), rate your level of <b>satisfaction with the help provided</b> (this refers to the mixed-up puzzle in the toggle bar).
13-
14-
Explain the reason for your choice in the short answer box below.
15-
16-
17-
.. shortanswer:: satisfication_explain_mooc-nested
18-
19-
Please explain the reason for your satisfication choice in the box.
20-
21-
22-
.. shortanswer:: end_explain_mooc-nested
23-
24-
Please skip this question if you used the "Mixed-up puzzle in the toggle bar" at least once.
25-
26-
If you did not use the help at all when solving the practice problems, please explain why.
27-
28-
291
Thank you!
302
===========
313

_sources/_hidden/mooc_nested_dict/posttest.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,20 @@ Posttest
4747
4848
Please answer the following questions.
4949
::
50-
# Here is a short answer question. This is the nested dictionary example you will work with.
50+
51+
# Here is a short answer question.
52+
# This is the nested dictionary example you will work with.
5153
employee_dict = {
5254
'John': {'age': 28, 'position': 'Designer',
53-
'skills': {'soft_skill': 'Creativity', 'technical_skill': 'Figma'}},
55+
'skills': {'soft_skill': 'Creativity',
56+
'technical_skill': 'Figma'}},
5457
'Alice': {'age': 34, 'position': 'Developer',
55-
'skills': {'soft_skill': 'Communication', 'technical_skill': 'Python'}}
58+
'skills': {'soft_skill': 'Communication',
59+
'technical_skill': 'Python'}}
5660
}
5761
58-
# Fill in the missing two lines below to print each employee’s name along with their skills using a nested loop.
62+
# Fill in the missing two lines below to print each employee’s name
63+
# along with their skills using a nested loop.
5964
6065
__________________
6166
@@ -183,7 +188,7 @@ What to do next
183188
================
184189
.. raw:: html
185190
186-
<p>Click on the following link to the post-survey: <b><a id="post_survey"> <font size="+1">Post-Survey</font></a></b></p>
191+
<p>Click on the following link to the final page: <b><a id="post_survey"> <font size="+1">Thank you!</font></a></b></p>
187192
188193
.. raw:: html
189194

_sources/_hidden/mooc_nested_dict/pre_survey.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ about the specified concept(s).
7676
:option_5: I am confident in my ability to use these concepts in complex programs
7777
:results: instructor
7878

79-
Familiarity of nested dictionaries in Python (dictionaries within dictionaries) and how they are structured.
79+
Familiarity with nested dictionaries in Python (dictionaries within dictionaries) and how they are structured.
8080

8181
.. poll:: mooc_nested-obj-2
8282
:option_1: I am unfamiliar with these concepts
@@ -86,7 +86,7 @@ about the specified concept(s).
8686
:option_5: I am confident in my ability to use these concepts in complex programs
8787
:results: instructor
8888

89-
Access values in a inner dictionary like <code>value_for_inner_key1 = nested_dict['outer_key']['inner_key1']</code>
89+
How to access values in a inner dictionary like <code>value_for_inner_key1 = nested_dict['outer_key']['inner_key1']</code>
9090

9191

9292
.. poll:: mooc_nested-obj-3
@@ -97,7 +97,7 @@ about the specified concept(s).
9797
:option_5: I am confident in my ability to use these concepts in complex programs
9898
:results: instructor
9999

100-
Add a new key-value pair to a inner dictionary of the given nested dictionary like <code>nested_dict['outer_key']['new_key'] = 'new_value'</code>
100+
How to add a new key-value pair to a inner dictionary of the given nested dictionary like <code>nested_dict['outer_key']['new_key'] = 'new_value'</code>
101101

102102
.. poll:: mooc_nested-obj-4
103103
:option_1: I am unfamiliar with these concepts
@@ -107,7 +107,7 @@ about the specified concept(s).
107107
:option_5: I am confident in my ability to use these concepts in complex programs
108108
:results: instructor
109109

110-
Loop through the outer items (key-value pairs) of a nested dictionary like for <code>outer_key, outer_value in nested_dict.items():</code>
110+
How to loop through the outer items (key-value pairs) of a nested dictionary like for <code>outer_key, outer_value in nested_dict.items():</code>
111111

112112
.. poll:: mooc_nested-obj-5
113113
:option_1: I am unfamiliar with these concepts
@@ -117,10 +117,10 @@ about the specified concept(s).
117117
:option_5: I am confident in my ability to use these concepts in complex programs
118118
:results: instructor
119119

120-
Loop through the inner items of a nested dictionary like for <code>inner_key, inner_value in nested_dict['outer_key'].items():</code>
120+
How to loop through the inner items of a nested dictionary like for <code>inner_key, inner_value in nested_dict['outer_key'].items():</code>
121121

122122
What to do next
123-
===============
123+
===================
124124

125125
.. raw:: html
126126

_sources/_hidden/mooc_nested_dict/puzzle_bank.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,18 @@
115115
=====
116116
order_totals[person] = {item: quantity}
117117
=====
118-
return order_totals
118+
return order_totals
119+
120+
121+
.. parsonsprob:: intro-sample-puzzle-mooc_nested
122+
:numbered: left
123+
:adaptive:
124+
:practice: T
125+
126+
Write a function called ``triple(num)`` that takes a number ``num`` and
127+
returns the number times 3. For example, ``triple(2)`` should return 6 and
128+
``triple(-1)`` should return -3.
129+
-----
130+
def triple(num):
131+
=====
132+
return num * 3

0 commit comments

Comments
 (0)