Screen Link:
https://app.dataquest.io/c/62/m/351/cleaning-and-preparing-data-in-python/5/string-capitalization
My Code:
for row in moma:
gender= row[5]
gender=gender.title()
if not gender:
gender="Gender Unkown/Other"
row [5]=gender
nationality= row[2]
nationality=nationality.title()
if not nationality:
nationality= "Nationality Unknown"
row [2]= nationality
What I expected to happen:
Nice work, next screen
What actually happened:
Value of moma is not what we expected.
One of your variables doesn't seem to have the correct value. Please re-check the instructions and your code.
Please I need help to understand what i am doing wrong