Correct DemoX Code Grader solution

the Show Answer button displays an answer that returns a SyntaxError:
invalid syntax

this commit corrects the print call by wrapping the int with str() for
proper type conversion and concatenates the sub strings inside parens
This commit is contained in:
unknown
2020-10-08 03:22:55 -04:00
parent ef73c68a20
commit 3c119ecf10

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:" + str( round(payment, 2) ) )
</answer_display>
<grader_payload>
{"grader": "ps02/bisect/grade_bisect.py"}