1.

Which of the keyword is used to display a customized error message to the user in Python?

Answer»

You should use a try-EXCEPT keyword to capture the error and use the raise keyword to display the error message of your CHOICE. Here's an example demonstrating the same:

try:
    a = INT(input())
except:
    raise Exception('An error is being RAISED in the system')



Discussion

No Comment Found