Multiple Choice
You created the following dictionary relationships = {'Jimmy':'brother'}. You then executed the following code, and received a KeyError exception. What is the reason for the exception?
Relationships['jimmy']
A) String comparisons are case sensitive so 'jimmy' does not equal 'Jimmy'.
B) You used the wrong syntax for creating the dictionary.
C) You should have used the code relationships['brother'].
D) There is a bug in Python.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: A dictionary can include the same value
Q19: Which function would you use to get
Q21: Which method would you use to returns
Q22: What is the value of the variable
Q23: The index of the first key-value pair
Q25: In order to avoid KeyError exceptions, you
Q26: What is the correct structure for creating
Q27: The difference of set1 and set2 is
Q28: The _ method returns a value associated
Q31: The elements in a dictionary are not