What's wrong?


#1



The name key does not have the value "Lloyd" in your lloyd dictionary.


lloyd={"name":[], "homework":[], "quizzes":[],  "tests":[]}
alice=lloyd
tyler=lloyd
lloyd['name']='Lloyd'
alice['name']='Alice'
tyler['name']='Tyler'


#2

i like the way you think, i am afraid it won't work, this:

alice=lloyd
tyler=lloyd

won't make copies of dictionaries, it will just make a variable referencing to the same dictionary


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.