Merge pull request #25719 from edx/sarina/demox-code-grader

Fix demoX grader print statements
This commit is contained in:
Sarina Canelake
2020-12-02 10:43:05 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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]:

View File

@@ -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"}