Chris FreemanTreehouse Moderator 65,296 Points
While it is not considered good coding style, the use of a semicolon is not illegal syntax.
Some of the “acceptable” code example shown in the PEP 08 style guide have semicolons. But most of the examples say not to include multiple statements on a single line.
In a teaching situation, I agree that the code should model better a coding style. Perhaps part of the lesson to show that it’s not illegal.