Get All Items

I have been following the instructions for this lesson " Get All Items" and this is the code I wrote
for ocupation, value in pct_women_in_ocupation.items():
print("Women make up " + str(value) + " percent of " + ocupation “.”)

But am still getting a SyntaxError and when click for the SOLUTION, the answer don’t appear.

if someone could help me

1 Like

You forgot a + character after occupation.
print("Women make up " + str(value) + " percent of " + ocupation + “.”)

2 Likes

There may also be a problem with the quotes around the period at the end of the sentence. They are not valid delimiters. A copy and paste with insertion of the needed + operator reveals this:

print("Women make up " + str(value) + " percent of " + ocupation “.”)

Replace the problematic quotes with valid ones.

2 Likes

thank you for your help!

2 Likes