Screen Link:
My Code:
"""debug = []
nonfree_games_social_ratings = []
for row in apps_data[1:]:
debug.append(row)
rating = float(row[7])
genre = row[11]
price = float(row[4]
if (genre == 'Social Networking' or genre == 'Games') and price != 0:
nonfree_games_social_ratings.append(rating)
ave_non_free = sum(nonfree_games_social_ratings) / len(nonfree_games_social_ratings)
What I expected to happen:
What actually happened:
File "<ipython-input-1-4875c8580010>", line 25
if (genre == 'Social Networking' or genre == 'Games') and price != 0:
^
SyntaxError: invalid syntax