Syntax errorsΒΆ
- Python can only execute a program if the program is syntactically correct; otherwise, the process fails and returns an error message.
- Syntax refers to the structure of a program and the rules about that structure.
- For example, in English, a sentence must begin with a capital letter. this sentence contains a syntax error.