2. This is KEY!



webster = {
  "Aardvark" : "A star of a popular children's cartoon show.",
  "Baa" : "The sound a goat makes.",
  "Carpet": "Goes on the floor.",
  "Dab": "A small amount."

for w in webster:
  print webster[w]

Use a for loop to go through the webster dictionary and print out all of the definitions.


A star of a popular children’s cartoon show.
Goes on the floor.
A small amount.
The sound a goat makes.


why the fork is it in the different order?

** In my defense I’d like to say that I actually did try other online compilers and it worked out the way I expected it to, I mean not mixed up or whatever.


Because dictionaries do not remember the order in which data is inserted. They have no order, only structure.


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