Skip to content

Commit

Permalink
Merge pull request #44 from elliewix/patch-9
Browse files Browse the repository at this point in the history
simplifying language on syntax errors
  • Loading branch information
weaverbel authored Jun 6, 2017
2 parents 042a6e1 + 1b0ffd1 commit f80ee75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions _episodes/04-built-in.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,12 @@ round(...)
~~~
{: .output}

## Python reports a syntax error when it can't understand the source of a program.
## Python reports a syntax error when grammar rules (that's Python grammar, not English grammar) have been violated.

* Won't even try to run the program if it can't be parsed.
* You've seen errors when you try to use a function incorrectly.
* Can also have errors when you use punctuation incorrectly.
* Python will run the program up until that point, but if the grammar of that line
of code has produced an error, then the program will shut down with an error.

~~~
# Forgot to close the quotation marks around the string.
Expand Down

0 comments on commit f80ee75

Please sign in to comment.