Which of the following is the right syntax to write try-except clause.

1
try:
[ program statements where exceptions might occur]
except (exception-name):
[ code to handle exception]
2
try();
[ program statements where exceptions might occur]
except [exception-name];
[ code to handle exception]
3
try:
[ program statements where exceptions might occur]
except (
[ code to handle exception])
4
None of these

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation