FAQ: Learn Python - Pyglatin - Check Yourself... Some More

It’s unlikely that a syntax error pops up specifically on cc, without seeing the code it’s not really possible to say for certain though. Please see- How to ask good questions (and get good answers) if you want to set up a good question, especially the section on posting formatted code.

If you really don’t want to run it as thread then you could try running your code on a different device or a number of websites will let you run python scripts. Then you can check if your syntax error is limited to one environment.