A Note On Syntax and Code Blocks - Coursera
A Note On Syntax and Code Blocks - Coursera
Misspellings
Incorrect indentations
If your syntax is correct, but the script has unexpected behavior or output, this may be due to a semantic problem.
Syntax is like the vocabulary, grammar, spelling, and punctuation of code. Semantics are the meaning and logic of
coded statements. It is possible to have syntactically correct code that runs successfully, but doesn't do what we
want it to do.
When working with the code blocks in exercises for this course, be mindful of syntax and semantic (logic) errors,
along with the overall result of your code. Just because you fixed an error doesn't mean that the code will have the
desired effect when it runs! Once you’ve fixed an error in your code, don't forget to click Run to check your work.
Mark as completed