Exact Answer -- getting an error

Screen Link: https://app.dataquest.io/m/331/python-data-analysis-basics/3/converting-ages-to-decades

My Code:

   for age in final_ages:
      if age == "Unknown":
        decade = age
         decade = str(age)
         decade = decade[:-1]
         decade = decade + "0s"

What I expected to happen:
Move on to next screen

What actually happened:
Decades is shorter than expected

Replace this line with the output/error

decades is shorter than we expected.

hi @liz.tracy09

this should be outside the if loop but inside the for loop. You might understand it better, if you print the decades list to see the result before submission.