Python Syntax error tips you need to resolve quickly

Python you already know there are two popular errors. One is Syntax error and the other one is Run time error.

In syntax error – there are two types..

  1. Name error
  2. Syntax error

Name error in Python

When you enter an expression and you did not defined any variable, then, you will get Name error.

Syntax error

Python does not support syntax like LHS expression with more than two varibales. 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

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 MemoryErrorsinstead.

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.