Student Becomes the Teacher


#1

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

What i'm doing wrong?


#2

the names should be string, not lists.


#3

but i have this:
"Oops, try again. Did you create a dictionary named lloyd? Your code threw a "global name 'lloyd' is not defined" error."


#4

did you change the names from list to string?
can i see an updated version of your code


#5

lloyd = {"name" : "lloyd", "homework":"", "quizzes":""}
alice = {"name" : "alice", "homework":"", "quizzes":""}
tyler = {"name" : "tyler", "homework":"", "quizzes":""}


#6

you have a question jetchirag?


#7

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