Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python codecademy help
#1
I need help with this code

lloyd = {
   "name":"Lloyd",
   "homework":[],
   "quizzes":[],
   "tests":[],
   }
alice = {
   "name":"Alice"
   "homework":[],
   "quizzes":[],
   "tests":[],
   }
tyler = {
   "name":"Tyler"
   "homework":[],
   "quizzes":[],
   "tests":[],
   }
Reply
#2
I'm not sure what the problem you are having is (because you didn't tell us), but I do see that you are missing commas after "Alice" and "Tyler". You also have extras after each "tests" list.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
I am getting the error Oops, try again. Did you create a dictionary named lloyd? Your code threw a "global name 'lloyd' is not defined" error

fixed it thanks for the help
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020