The correct answer is option 1.
Exception handling clause:
Try:
This block will check for the expected error.
Except:
We can deal with the problem here.
Else:
This block will be run if there are no exceptions. It means else part is executed when no exception occurs.
Finally:
Whether an exception is triggered or not, the finally-block is always performed.
Syntax:
try:
# Some Codes or some operations are performed.
except (error_1 name, erro_2 name, .......):
# optional block Handling of multiple exceptions (if required) or some operations are performed.
else:
# execute if no exception
finally:
# Some code (always executed) or some operations are performed.
Explanation:
A program can reply to several exceptions without being terminated by handling multiple exceptions. Try-except blocks in Python can be used to capture and handle one or more exceptions. When a process raises more than one possible exception, all of them can be handled with a single except clause. As a result, each type of exception may be explicitly specified. It is unnecessary to include it in a list.
Hence the correct answer is yes, like except TypeError, SyntaxError [,…]