One of the exceptions

Report a typo

There is also one interesting feature of the built-in exceptions to be mentioned. If you print dir(locals()['__builtins__']), you obtain a list of all built-in exceptions and functions that exist in Python. Your task is to use the index given in the input and print the name of the exception that has this index. Each index in the input corresponds to an exception.

Sample Input 1:

2

Sample Output 1:

AttributeError
Write a program in Python 3





___

Create a free account to access the full topic