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
Q6: Which method would you use to return
Q7: The index of the first element in
Q8: What would be the result of the
Q9: Sets are immutable.
Q14: What is the number of the first
Q23: The index of the first key-value pair
Q23: The set remove and discard methods behave
Q27: The difference of set1 and set2 is
Q28: The _ method returns a value associated
Q32: In a dictionary,you use a(n)_ to locate