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:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user