Why are my student dictionaries not accepted?


#1

Question

Why are my student dictionaries not accepted?

Answer

There are a few common errors listed below:

  1. Capitalization issues will prevent you from passing. Remember that Codecademy checks for exactly what the instructions ask for, so your variable names should be all lowercase, like lloyd, but their names stored under their "name" keys should be capitalized like a normal name, like "Lloyd".
  2. Incorrect dictionary syntax will give you lots of errors! Remember that dictionaries are key-value pairs, and that each value except the last in the dictionary must have a comma after it.
  3. The "name" key’s value does not go in brackets [ ], it’s just a string.

FAQ: Learn Python: Student Becomes the Teacher - Lesson Number One