2/13


#1

My code works but it puts it in console 4 times. is there a better way of doing it?

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 wbstr in webster:
    print webster["Aardvark"]
    print webster["Carpet"]
    print webster["Dab"]
    print webster["Baa"]

#2

nvm i got it.

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 wbstr in webster:
    print webster[wbstr]

#3

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 all in webster:
print webster[all]

For me, this worked perfectly.


#4

they are the exact same thing except instead of 'wbstr' you have 'all'


#5

it helped me thx :clap: