; that you forgot to add — these are just some examples of such violations.
Here is an example of code with a syntax error:
If we run this code we will see the following message:
On one hand, syntax errors are the simplest because they are all about code grammar rules and aren't related to any code logic. They can be easily fixed, you just need to find them.
On the other hand, interpreter will not always tell you the correct position of an error. Sometimes you need to add a forgotten bracket to another place as opposed to what the error message says.
This task isn't related to the lesson directly but it would be useful to practice displaying content on the screen anyway.
Display following text
What Is Dead May Never Die.
Syntax error - violation of grammar rules in a programming language