From 3c119ecf102f8cc87bb0076bdb10c25a37c2aaf4 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 8 Oct 2020 03:22:55 -0400 Subject: [PATCH] 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 --- .../problem/c2ee6e8917fe4c97ac99d7b616ff0b89.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/test/data/manual-testing-complete/problem/c2ee6e8917fe4c97ac99d7b616ff0b89.xml b/common/test/data/manual-testing-complete/problem/c2ee6e8917fe4c97ac99d7b616ff0b89.xml index cf9ee3d8a0..bd130b8687 100644 --- a/common/test/data/manual-testing-complete/problem/c2ee6e8917fe4c97ac99d7b616ff0b89.xml +++ b/common/test/data/manual-testing-complete/problem/c2ee6e8917fe4c97ac99d7b616ff0b89.xml @@ -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) ) ) {"grader": "ps02/bisect/grade_bisect.py"}