Lesson Number Once--Plz help me!


#1

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

I am confused it. Why it doesn't work?


Replace this line with your code.


#2

@jiepinjifu

Please post a link to the lesson you need help with as well as any errors that codecademy gives you.


#3

https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/0/1?curriculum_id=4f89dab3d788890003000096


#4

@jiepinjifu

You are not giving any of the homework, quizzes, or tests variables values. Set them all equal to an empty list, for example:

'homework':[],


#5

Is it a must to set empty list to the variables? why I cannot remove the []?


#6

The values of a dictionary must be assigned when the list is created. It says to do this in the instructions of the lesson...

Have the "name" key be the name of the student (that is, lloyd's name should be "Lloyd") and the other keys should be an empty list. (We'll fill in these lists soon!)


#7

Ooh ok thank you! It is a great help!


#8

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