All exams are online now due to COVID related precautions | Download the app or write to us at info@vskills.in

Certified Python Developer Learning Resources Exceptions

Learning Resources
 

Exceptions


Exceptions occur when certain exceptional situations occur in your program. For example, what if you are going to read a file and the file does not exist? Or what if you accidentally deleted it when the program was running? Such situations are handled using exceptions.

Similarly, what if your program had some invalid statements? This is handled by Python which raises its hands and tells you there is an error.

 

-Swaroopch