Giving an error for no apparent reason


#1
  1. Lesson Number One

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

What should happen:
Way to Go!

I don't see what I did wrong? Someone please point this out :confused:

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

#2

Can ignore the comma's after the last [] in each list, took them out and got the same error


#3

HI

Can ignore the comma's after the last []

yes you can remove it

then

you errro come from those lines

'name':['Lloyd'],
'name':['Alice'],
'name':['Tyler'],

remove the [ ] around the name of your students


#5

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