Wednesday, 3 July 2019

Syntax Errors in Python


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
You may like the following posts:


No comments:

Post a Comment

Files with Exception handling

#Ask the user to take two input integer values var a,b try:     a=int(input("enter any integer value:"))     b=int(input(&qu...