Exceptions
What is Exception? An exception is an event, which occurs during the execution of a program that disrupts the normal flow of the program's instructions. In general, when a Python script encounters a
·
1 min read
try:You do your operations here;......................except ExceptionI:If there is ExceptionI, then execute this block.except ExceptionII:If there is ExceptionII, then execute this block.......................else:If there is no exception then execute this block.
Satyendra Kumar
Today i learn intro
No comments yet. Login to start a new discussion Start a new discussion