Domanda di colloquio di Securin

How to do exception handling in python?

Risposta di colloquio

Anonimo

28 nov 2024

I might use a ``` try except ``` block to handle exceptions which might occur during runtime. Then i might pad it with a finally orelse block depending upon the use case. Sometimes I would also have to write my own custom error classes to raise custom errors, depending on the application.