This is key 2/13


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."

Add your code below!

for "Aardvark" in webster:
print webster["Aardvark"]
for "Baa" in webster:
print webster[ "Baa"]
for "Carpet" in webster:
print webster["Carpet"]
for "Dab" in webster:
print webster["Dab"]
This is my code,but it gives me an error that says:
File "python", line 9
SyntaxError: can't assign to literal
Can anyone help me with this


Never mind I fixed it.
I put "" on the keys.


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