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?

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']

Jimmy and jimmy are different


What is the value of the variable string after the execution of the following code?


myString = 'abcd'

myString = myString.upper()


Answer: 'ABCD'


Learn More :