File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,52 +162,30 @@ assert grade(92) == 'A'
162162assert grade(85) == 'B'
163163assert grade(69) == 'F'
164164 </input ></program >
165- .. reveal:: ac_grade_unittest_aux_reveal
166- :instructoronly:
167- .. actex:: ac_grade_unittest_aux
165+
166+ <commentary >
167+ ac_grade_unittest_aux_reveal
168+ instructoronly
169+ actex:: ac_grade_unittest_aux
168170 testA = False
169171 testB = False
170172 testF = False
171173 illegal = False
172174 def grade(score):
173175 global illegal, testA, testB, testF
174- if score > 100 or score < 0:
176+ if score > 100 or score < 0:
175177 illegal = True
176178 return ''
177- elif score > = 90:
179+ elif score > = 90:
178180 testA = True
179181 return 'A'
180- elif score > = 80:
182+ elif score > = 80:
181183 testB = True
182184 return 'B'
183185 else:
184186 testF = True
185187 return 'F'
186-
187- <p >The following asserts are just some of several that could have been used.</p >
188-
189-
190- <!-- .. reveal:: ac_grade_unittest_aux_reveal-->
191- <!-- :instructoronly:-->
192- <!-- .. actex:: ac_grade_unittest_aux-->
193- <!-- testA = False-->
194- <!-- testB = False-->
195- <!-- testF = False-->
196- <!-- illegal = False-->
197- <!-- def grade(score):-->
198- <!-- global illegal, testA, testB, testF-->
199- <!-- if score > 100 or score < 0:-->
200- <!-- illegal = True-->
201- <!-- return ''-->
202- <!-- elif score >= 90:-->
203- <!-- testA = True-->
204- <!-- return 'A'-->
205- <!-- elif score >= 80:-->
206- <!-- testB = True-->
207- <!-- return 'B'-->
208- <!-- else:-->
209- <!-- testF = True-->
210- <!-- return 'F'-->
188+ </commentary >
211189 </solution >
212190 </exercise >
213191 </subsection >
You can’t perform that action at this time.
0 commit comments