The syntax error:
On line 5 you forgot to close the parenthesis for the `list(range(20) … so just add an extra ) and you will be fine.
What I do, is that I open and close all the parenthesis before I write any code. Something like this.
numbers = list(range())
And yes… when you save it delets the extra spaces. It’s a plugin (forgot the name)…however the extra spaces are recommended by PEP8. When I programmed in Python, I deleted the plugin and everything worked as I wanted to. Check the pugins you installed and check what they do, I’m sure one of them provides styling (or something like that)