This issue is related to If -statements problem set. The issue is on Problem 1 in this ‘If-statements’ chapter.
My code looks correct to me but there may be a mistake I am overlooking. Basically here is
Here is the link to the problem: Learn data science with Python and R projects
**# INITIAL CODE** opened_file = open('AppleStore.csv') from csv import reader read_file = reader(opened_file) apps_data = list(read_file) free_apps_ratings =  for row in apps_data[1:]: rating = float(row) # Complete the code from here price = float(row) if price == 0.0: free_apps_ratings.append(rating) print(free_apps_ratings[:5]) avg_rating_free = sum(free_apps_ratings)/len(free_apps_ratings) **What I expected to happen:** avg_rating_free float (<class 'float'>) - actual + expected - 0 + 3.3767258382642997 Find attached expected screenshot![Screen Shot 2021-10-14 at 1.25.31 PM|537x500](upload://nEzygFXlzdkruBZDsihoCAHgl9O.png) What actually happened:
float (<class ‘float’>)
actual + expected