for row in apps_data[1:]: rating = float(row) genre = row price = float(row) if genre == ('Social Networking' or genre == 'Games') != 0: non_free_games_social_ratings.append(rating) avg_non_free = sum(non_free_games_social_ratings) / len(non_free_games_social_ratings)
Right now I am getting a value less than what was expected. My rating is coming out as
2.9850299401197606 when it should be
What am I doing wrong?
Thanks for the help!