Lesson 1 - Error message: "The name key does not have the value 'Lloyd' in your lloyd dictionary."


#1



Lesson 1


The error message says "The name key does not have the value 'Lloyd' in your lloyd dictionary."


But I gave the "name" key the value "Lloyd."
Please explain what is going on.


lloyd = {"name": ["Lloyd"],"homework": [],"quizzes": [],"tests": []}


#2

which would imply a plain string, not a list.


#3

Oh so the brackets are only used for lists. Thanks.


#7

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