DEV Community

Cover image for Types of Errors in Python
Sandhya Kolikonda
Sandhya Kolikonda

Posted on

2

Types of Errors in Python

In python programming we get three types of errors. they are

           1.Compile Time Error
           2.Logical Error
           3.Run Time Error
Enter fullscreen mode Exit fullscreen mode

Let us discuss in briefly:
*Compile Time Error: *
These errors are occurs during compilation Time. and these errors occurs due to the syntax's are not followed during program Development.

  • These errors are solved by programmers During Development Time.

Logical Error:
These errors occurs during runtime or execution time. and these errors occurs due to wrong representation of Logic.

  • These errors are solved by programmers during Development Time.

Run Time Error:
These errors are occurs during Runtime or execution time. and these errors occurs due to wrong inputs or invalid inputs entered by end users or application users.

  • When Runtime errors occurs, by default all the languages gives Technical error messages, which are understandable by programmers but not by end users. this is not a recommended process in real time.

  • According to industry standards it is recommended to display always user friendly error messages for making the application robust by using exception handling.

Note:
When the end-user enter the valid input to the project it gives valid result. and when the end-user enter the invalid input to the project then the project displays user-friendly error message by using exception handling.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay