What does sys.exc_info()[0] do?
imports the sys module
accesses the error log
deletes the error log
deletes the sys module
3 answers
sys.exc_info()[0] is a function call that returns a tuple containing information about the current exception being handled in a try-except block. The [0] index in the tuple refers to the type of the exception that was raised.
answer the question
Accesses the type of the current exception being handled.