Except exception handler - The base of all exceptions

Lesson Details:
June 29, 2020


I: Introduction

In today’s world, computer plays a vital role in our life. Whether it is in the offices, in the schools or in the libraries, computers are in use in one form or other. But a computer is a machine and it needs a program to know what to do. The programs are written in a programming language. Nowadays, there are many different types of languages available for writing programs. All these languages have some common features but they also have their own unique characteristics.

Python is one of the most popular programming languages used today. It is an easy-to-learn programming language with simple but powerful syntax. Python is object oriented, high level, general purpose and dynamic programming language. Python was invented by Guido van Rossum in late 1980s at CWI (Centrum Wiskunde en Informatica) in the Netherlands.

II: Body

Python is open source programming language. It is interpreted i.e. it is not compiled into machine code before execution like Java or C++. It runs on all major platforms including Windows, Linux, BSD, Mac OS X etc.

Python supports all major operating systems like Unix, Windows, Mac OS etc. A programmer can create web applications using Python. We can also build GUI (Graphical User Interface) applications using Python.

Python provides ‘exception handling’ functionality which is the base of all exceptions. It is used to handle errors while writing programs. When some error occurs while executing any program then it throws an exception and does not resume any further operations. We can control this exception handling by specifying some codes which are called ‘exceptions’. When an ‘exception’ happens, it will be handled by ‘try...except...’ block of code. If an exception occurs inside the try block then it will be handled by except block otherwise it will be handled by finally block.

III: Conclusion

So if you want to develop applications that are easy to write, read and maintain then you must learn python programming language.

loader
Course content