My answer only 0.01 off from accepted anwer?

Screen Link: https://app.dataquest.io/m/423/conditional-statements/8/the-not-operator

Your Code:

opened_file = open('AppleStore.csv')
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)
opened_file.close()

non_free_non_sn_games = []
for row in apps_data[1:]:
    rating = float(row[7])
    genre = row[11]
    price = float(row[4])
    
    # Complete code here
    if not (genre == 'Social Network' or genre == 'Games') and not price == 0:
        non_free_non_sn_games.append(rating)
        
avg_non_free_non_sn_games = sum(non_free_non_sn_games) / len(non_free_non_sn_games)

What I expected to happen: I expected to get the right answer, which according to Data Quest is avg_non_free_non_sn_games = 3.5383597883597884. But, I get
avg_non_free_non_sn_games = 3.5286458333333335

What actually happened:
avg_non_free_non_sn_games = 3.5286458333333335

Other details: I looked at the answer, and I can’t see a difference between the answer code and my code. This is preventing me from continuing!

Hi @emilywd,

It looks like your problem is in the following line.

You have 'Social Network' but it should be 'Social Networking'

Good luck,
Bradon

Sometimes it’s the really simple things I overlook. Sigh.

Thanks so much!

It’s happened to all of us!