Lesson Number One


#1


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

Oops, try again. The name key does not have the value "Lloyd" in your lloyd dictionary.

Why does the code not work when there are brackets around the names, for example on line two ('name' : ['Lloyd']). In the example it shows a key having two strings within brackets ("cat": ["meow", "purr"],).


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


#2

the name key shouldn't be a list.

you just have to write the name of the student.


#3

I should have said that I found the answer, I was just wondering why that is the answer. It was only providing an error because the lesson needs the specific input right?


#4

right :slight_smile:

you have to do what the lesson expects from you .


#5

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