Python you already know there are two popular errors. One is a Syntax error and the other one is Run time error.
How to Resolve Errors in Python
In syntax, there are two types of errors
- Name error
- Syntax error
- Overflow errors
1). Name error in Python
When you enter an expression and you did not define any variable, then, you will get Name error.
2). Syntax error
Python does not support syntax like LHS expression with more than two variables. It does support more than two variables in RHS.
Example
>> x + 2 = Y ==> This is syntax error >> x = y + 2 ==> This is correct
Watch the Python video – Check that how I resolved Syntax and Name errors in Python
3). Overflow errors
According to airbrake.io – Making our way through our detailed Python Exception Handling series brings us today to the OverflowError within Python.
Just like most other programming languages, the OverflowError
in Python indicates that an arithmetic operation has exceeded the limits of the current Python runtime.
This is typically due to excessively large Float
values, as Integer
values that are too big will opt to raise MemoryErrors
instead.
Related Posts
References