Key Error while doing frequency table

Hi there, does anybody have an idea about this error?

KeyError: 'Social Networking'

which is caused by the following code. genres is for the list of strings.
genres_ft = {}
for row in genres:
if row in genres:
genres_ft[row] += 1
else:
genres_ft[row] = 1
print(genres_ft)

Hi @yana.mazo

Welcome to our Dataquest Community.

Please take a look at the below post :slightly_smiling_face: .