Skip to content

Commit 459b900

Browse files
committed
Add <p> tags to all feedback
1 parent 9810d1f commit 459b900

91 files changed

Lines changed: 1256 additions & 1256 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pretext/ClassesBasics/UserDefinedClasses.ptx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,33 +166,33 @@ print(x, y)
166166
<statement>
167167
<p>True True</p>
168168
</statement>
169-
<feedback>
169+
<feedback><p>
170170
Look closely at how the objects are instantiated.
171-
</feedback>
171+
</p></feedback>
172172
</choice>
173173
<choice>
174174
<statement>
175175
<p>True False</p>
176176
</statement>
177-
<feedback>
177+
<feedback><p>
178178
Look closely at how the objects are instantiated and the types of the objects.
179-
</feedback>
179+
</p></feedback>
180180
</choice>
181181
<choice correct="yes">
182182
<statement>
183183
<p>False True</p>
184184
</statement>
185-
<feedback>
185+
<feedback><p>
186186
Correct, the BMW object is not the Tesla object but they are of the same type.
187-
</feedback>
187+
</p></feedback>
188188
</choice>
189189
<choice>
190190
<statement>
191191
<p>False False</p>
192192
</statement>
193-
<feedback>
193+
<feedback><p>
194194
Look closer at types of the objects.
195-
</feedback>
195+
</p></feedback>
196196
</choice>
197197
</choices>
198198
</exercise>

pretext/Debugging/HowtoAvoidDebugging.ptx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,25 @@ print(final_time)
7575
<statement>
7676
<p>Python is stupid and does not know how to add properly.</p>
7777
</statement>
78-
<feedback>
78+
<feedback><p>
7979
No, Python is probabaly not broken.
80-
</feedback>
80+
</p></feedback>
8181
</choice>
8282
<choice>
8383
<statement>
8484
<p>There is nothing wrong here.</p>
8585
</statement>
86-
<feedback>
86+
<feedback><p>
8787
No, try adding the two numbers together yourself, you will definitely get a different result.
88-
</feedback>
88+
</p></feedback>
8989
</choice>
9090
<choice correct="yes">
9191
<statement>
9292
<p>Python is doing string concatenation, not integer addition.</p>
9393
</statement>
94-
<feedback>
94+
<feedback><p>
9595
Yes! Remember that input returns a string. Now we will need to convert the string to an integer
96-
</feedback>
96+
</p></feedback>
9797
</choice>
9898
</choices>
9999
</exercise>

pretext/Debugging/KnowyourerrorMessages.ptx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,25 @@ print(final_time_int)
4444
<statement>
4545
<p>You cannot use a variable on both the left and right hand sides of an assignment statement.</p>
4646
</statement>
47-
<feedback>
47+
<feedback><p>
4848
No, You can, as long as all the variables on the right hand side already have values.
49-
</feedback>
49+
</p></feedback>
5050
</choice>
5151
<choice correct="yes">
5252
<statement>
5353
<p>wait_time_int does not have a value so it cannot be used on the right hand side.</p>
5454
</statement>
55-
<feedback>
55+
<feedback><p>
5656
Yes. Variables must already have values in order to be used on the right hand side.
57-
</feedback>
57+
</p></feedback>
5858
</choice>
5959
<choice>
6060
<statement>
6161
<p>This is not really an error, Python is broken.</p>
6262
</statement>
63-
<feedback>
63+
<feedback><p>
6464
No, No, No!
65-
</feedback>
65+
</p></feedback>
6666
</choice>
6767
</choices>
6868
</exercise>

pretext/Dictionaries/Aliasingandcopying.ptx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,33 @@ print(mydict["elephant"])
4545
<statement>
4646
<p>23</p>
4747
</statement>
48-
<feedback>
48+
<feedback><p>
4949
mydict and yourdict are both names for the same dictionary.
50-
</feedback>
50+
</p></feedback>
5151
</choice>
5252
<choice>
5353
<statement>
5454
<p>None</p>
5555
</statement>
56-
<feedback>
56+
<feedback><p>
5757
The dictionary is mutable so changes can be made to the keys and values.
58-
</feedback>
58+
</p></feedback>
5959
</choice>
6060
<choice correct="yes">
6161
<statement>
6262
<p>999</p>
6363
</statement>
64-
<feedback>
64+
<feedback><p>
6565
Yes, since yourdict is an alias for mydict, the value for the key elephant has been changed.
66-
</feedback>
66+
</p></feedback>
6767
</choice>
6868
<choice>
6969
<statement>
7070
<p>Error, there are two different keys named elephant.</p>
7171
</statement>
72-
<feedback>
72+
<feedback><p>
7373
There is only one dictionary with only one key named elephant. The dictionary has two different names, mydict and yourdict.
74-
</feedback>
74+
</p></feedback>
7575
</choice>
7676
</choices>
7777
</exercise>

pretext/Dictionaries/Dictionarymethods.ptx

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -179,33 +179,33 @@ print(keylist[3])
179179
<statement>
180180
<p>cat</p>
181181
</statement>
182-
<feedback>
182+
<feedback><p>
183183
keylist is a list of all the keys which is then sorted. cat would be at index 1.
184-
</feedback>
184+
</p></feedback>
185185
</choice>
186186
<choice>
187187
<statement>
188188
<p>dog</p>
189189
</statement>
190-
<feedback>
190+
<feedback><p>
191191
keylist is a list of all the keys which is then sorted. dog would be at index 2.
192-
</feedback>
192+
</p></feedback>
193193
</choice>
194194
<choice correct="yes">
195195
<statement>
196196
<p>elephant</p>
197197
</statement>
198-
<feedback>
198+
<feedback><p>
199199
Yes, the list of keys is sorted and the item at index 3 is printed.
200-
</feedback>
200+
</p></feedback>
201201
</choice>
202202
<choice>
203203
<statement>
204204
<p>bear</p>
205205
</statement>
206-
<feedback>
206+
<feedback><p>
207207
keylist is a list of all the keys which is then sorted. bear would be at index 0.
208-
</feedback>
208+
</p></feedback>
209209
</choice>
210210
</choices>
211211
</exercise>
@@ -225,33 +225,33 @@ print(answer)
225225
<statement>
226226
<p>2</p>
227227
</statement>
228-
<feedback>
228+
<feedback><p>
229229
get returns the value associated with a given key so this divides 12 by 6.
230-
</feedback>
230+
</p></feedback>
231231
</choice>
232232
<choice>
233233
<statement>
234234
<p>0.5</p>
235235
</statement>
236-
<feedback>
236+
<feedback><p>
237237
12 is divided by 6, not the other way around.
238-
</feedback>
238+
</p></feedback>
239239
</choice>
240240
<choice>
241241
<statement>
242242
<p>bear</p>
243243
</statement>
244-
<feedback>
244+
<feedback><p>
245245
Take another look at the example for get above. get returns the value associated with a given key.
246-
</feedback>
246+
</p></feedback>
247247
</choice>
248248
<choice>
249249
<statement>
250250
<p>Error, divide is not a valid operation on dictionaries.</p>
251251
</statement>
252-
<feedback>
252+
<feedback><p>
253253
The integer division operator is being used on the values returned from the get method, not on the dictionary.
254-
</feedback>
254+
</p></feedback>
255255
</choice>
256256
</choices>
257257
</exercise>
@@ -270,17 +270,17 @@ print("dog" in mydict)
270270
<statement>
271271
<p>True</p>
272272
</statement>
273-
<feedback>
273+
<feedback><p>
274274
Yes, dog is a key in the dictionary.
275-
</feedback>
275+
</p></feedback>
276276
</choice>
277277
<choice>
278278
<statement>
279279
<p>False</p>
280280
</statement>
281-
<feedback>
281+
<feedback><p>
282282
The in operator returns True if a key is in the dictionary, False otherwise.
283-
</feedback>
283+
</p></feedback>
284284
</choice>
285285
</choices>
286286
</exercise>
@@ -299,17 +299,17 @@ print(23 in mydict)
299299
<statement>
300300
<p>True</p>
301301
</statement>
302-
<feedback>
302+
<feedback><p>
303303
23 is a value in the dictionary, not a key.
304-
</feedback>
304+
</p></feedback>
305305
</choice>
306306
<choice correct="yes">
307307
<statement>
308308
<p>False</p>
309309
</statement>
310-
<feedback>
310+
<feedback><p>
311311
Yes, the in operator returns True if a key is in the dictionary, False otherwise.
312-
</feedback>
312+
</p></feedback>
313313
</choice>
314314
</choices>
315315
</exercise>
@@ -332,33 +332,33 @@ print(total)
332332
<statement>
333333
<p>18</p>
334334
</statement>
335-
<feedback>
335+
<feedback><p>
336336
Add the values that have keys greater than 3, not equal to 3.
337-
</feedback>
337+
</p></feedback>
338338
</choice>
339339
<choice correct="yes">
340340
<statement>
341341
<p>43</p>
342342
</statement>
343-
<feedback>
343+
<feedback><p>
344344
Yes, the for statement iterates over the keys. It adds the values of the keys that have length greater than 3.
345-
</feedback>
345+
</p></feedback>
346346
</choice>
347347
<choice>
348348
<statement>
349349
<p>0</p>
350350
</statement>
351-
<feedback>
351+
<feedback><p>
352352
This is the accumulator pattern. total starts at 0 but then changes as the iteration proceeds.
353-
</feedback>
353+
</p></feedback>
354354
</choice>
355355
<choice>
356356
<statement>
357357
<p>61</p>
358358
</statement>
359-
<feedback>
359+
<feedback><p>
360360
Not all the values are added together. The if statement only chooses some of them.
361-
</feedback>
361+
</p></feedback>
362362
</choice>
363363
</choices>
364364
</exercise>

pretext/Dictionaries/Dictionaryoperations.ptx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,33 @@ print(mydict["mouse"])
5555
<statement>
5656
<p>12</p>
5757
</statement>
58-
<feedback>
58+
<feedback><p>
5959
12 is associated with the key cat.
60-
</feedback>
60+
</p></feedback>
6161
</choice>
6262
<choice>
6363
<statement>
6464
<p>0</p>
6565
</statement>
66-
<feedback>
66+
<feedback><p>
6767
The key mouse will be associated with the sum of the two values.
68-
</feedback>
68+
</p></feedback>
6969
</choice>
7070
<choice correct="yes">
7171
<statement>
7272
<p>18</p>
7373
</statement>
74-
<feedback>
74+
<feedback><p>
7575
Yes, add the value for cat and the value for dog (12 + 6) and create a new entry for mouse.
76-
</feedback>
76+
</p></feedback>
7777
</choice>
7878
<choice>
7979
<statement>
8080
<p>Error, there is no entry with mouse as the key.</p>
8181
</statement>
82-
<feedback>
82+
<feedback><p>
8383
Since the new key is introduced on the left hand side of the assignment statement, a new key-value pair is added to the dictionary.
84-
</feedback>
84+
</p></feedback>
8585
</choice>
8686
</choices>
8787
</exercise>

0 commit comments

Comments
 (0)