Tell us what’s happening:
Describe your issue in detail here.
I am getting an error message in my repl console saying its syntax error but There is no syntax mistake.
There is no “visible” syntax error - but the following line is not indented, so the for-loop is missing a body. Kinda hard for the error to point at something that isn’t there.
You need to adjust indentation to fit your logic - because indentation levels are part of the Python-syntax. Whereas it’s just for the looks in other languages, for Python there is a difference if a line starts with 0 or 1 space for example.
Your output is red, expected is green, “?” indicates differences. You are supposed to have 4 spaces inbetween each problem - however looking at the operator, there is only one space.
As for the second error, if the “answer” argument is True, you don’t actually reach the “return” → if you read the error, it’ says “None = [stuff]” with “None” being your output or the lack thereof.
Your output is on the left and if you read the message, you’ll notice the assertEqual(actual, expected, “Error message…”), which you can also check out in the test_module.py
Understanding the error messages is quite challenging at first, but it’s super helpful once you can.