Basic exemptions handling in Python programming language

​Whenever you write a code in Python programming language where you expect that an error may occur, then it is possible to wrap your code in try/except block.

The try block is where executable code will be inserted where you expect an error.

If error in the code happens, then code except block will be executed.

By default except block will handle every exception, in the next article I will write about how to handle specific error types.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator