Course Name: Python for Trading: Basic, Section No: 9, Unit No: 5, Unit type: Exercise
There is a problem with the coding exercise after the problem I just ran into and posted about, which gives an incorrect answer as the correct answer. In the coding exercise, there are a variation of answers which would produce the correct output. I could possibly understand some borderline solutions not showing as correct, but in Python, specifically in print statements and this scenario, there is no difference in single and double quotes. However, writing the proper condition and the proper print statement and even producing the desired output will still lead to an incorrect answer, with hints to check the indentation (which I tried with both four spaces and actual tab, to no avail). Although the correct output shows whether the statement is surrounded by ' ' or by " ", the answer is only deemed correct if the sentence in the print statement is enclosed by ' ', which is actually the opposite of the statement provided to the left of the coding area.
The print statement should work with single or double quotes, but due to some limitations in our evaluation engine, it is throwing error. Thank you for pointing out, we have informed tech team they are working on that.