Python Programming - Exception Handling - Discussion

Discussion Forum : Exception Handling - General Questions (Q.No. 19)
19.
Which of the following is a built-in exception in Python that is raised when a specified key is not found in a dictionary?
KeyError
ValueError
NotFoundException
MissingKeyError
Answer: Option
Explanation:
A KeyError is raised when attempting to access a key in a dictionary that does not exist.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.