2000_Ben
2000Josh Lee
Chris VanYe2000
2000~Travis Vonheeder
2000-Sean
2000
Key Error: 2000It prints out a key error because there is no value for 2000-Joe Haj
2000- Owen Luther
KeyError: 2000Technically, that is the error message, not what is printed.-Katelyn
2000jonathan
2000Alex Haston
my_dict={} my_dict["Jon"]=1000 my_dict["Bob"]=2000 my_dict["Sue"]=3 print my_dict[my_dict["Bob"]] Charlie Lin
This program causes a KeyError because the value 2000, isn't a key-value pair. The value 2000 isn't a key.- Abby Peterson
2000--Lux lei
2000-Gary
2000
ReplyDelete_Ben
2000
ReplyDeleteJosh Lee
Chris VanYe
ReplyDelete2000
2000
ReplyDelete~Travis Vonheeder
2000
ReplyDelete-Sean
2000
ReplyDeleteKey Error: 2000
ReplyDeleteIt prints out a key error because there is no value for 2000
-Joe Haj
2000
ReplyDelete- Owen Luther
KeyError: 2000
ReplyDeleteTechnically, that is the error message, not what is printed.
-Katelyn
2000
ReplyDeletejonathan
2000
ReplyDeleteAlex Haston
my_dict={}
ReplyDeletemy_dict["Jon"]=1000
my_dict["Bob"]=2000
my_dict["Sue"]=3
print my_dict[my_dict["Bob"]]
Charlie Lin
This program causes a KeyError because the value 2000, isn't a key-value pair. The value 2000 isn't a key.
ReplyDelete- Abby Peterson
2000
ReplyDelete--Lux lei
2000
ReplyDelete-Gary