Syntax Error:
Syntax Errors generally comes under compiletime.
We can detect Syntax errors before our program begins to run. These types of errors are usually typing mistakes, but more generally it means that there is some problem with the structure of your program.
Example:
print("Hello World) # Here I omitted to end with double-quote
EOL stands for End Of Line. This error means that there was an open quote somewhere, but the line ended before a closing quote was found.
Previous topic: Errors in Python
No comments:
Post a Comment