What is a 'Syntax Error'?

Asked by blessing007 · 6 months ago

1 Answer

33
amorebise · 6 months ago Top Answer

A syntax error is just a grammar mistake. It’s like writing 'I goes to the market'. We understand you, but the grammar is wrong.

Python is very strict. If you forget a colon (:) or a bracket, it will stop and complain. Don't be discouraged! Even after 15 years, I still make syntax errors every day. Just fix it and move on.

Log in to add a comment.