String is an immutable object. That is, you cannot modify the string to change its value. Hence, a str object cannot support item assignment.
Most likely, row is a string object.
You can convert the string into a list and modify the content and reconvert it back to a string.
# Convert a string to its list representation
row = list(row)
# Modify the string character at index 2
row[2] = "s"
# Convert back to a string
row = "".join(row)
In your notebook you’re reading the data into a pandas.DataFrame object. So when you do for row in moma, by virtue of how the iterators are implemented in dataframes, you’ll actually be iterating over the columns of the dataframe, which are strings.
In the mission we do not read the file into a dataframe, we represent the data as a list of lists. If you want to use dataframes, you need to adjust the techniques.