Merge pull request #25719 from edx/sarina/demox-code-grader
Fix demoX grader print statements
This commit is contained in:
@@ -19,7 +19,7 @@ for response in submission[0]:
|
||||
if response[0] == 'ac':
|
||||
for node in response[1:]:
|
||||
ac_values = node['NodeA']
|
||||
print "the ac analysis value:", ac_values
|
||||
print("the ac analysis value:", ac_values)
|
||||
if ac_values == None:
|
||||
correct = ['incorrect']
|
||||
elif ac_values[0][1] < ac_values[1][1]:
|
||||
|
||||
@@ -73,7 +73,7 @@ while abs(balance) > .02:
|
||||
|
||||
# When the while loop terminates, we know we have
|
||||
# our answer!
|
||||
print "Lowest Payment:", round(payment, 2)
|
||||
print("Lowest Payment:", round(payment, 2))
|
||||
</answer_display>
|
||||
<grader_payload>
|
||||
{"grader": "ps02/bisect/grade_bisect.py"}
|
||||
|
||||
Reference in New Issue
Block a user