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.
Built-in exceptions
One of the exceptions
Report a typo
Sample Input 1:
2Sample Output 1:
AttributeErrorWrite a program in Python 3
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.