313 comparison operators ex 8 question 3

My Code: <opened_file = open(‘AppleStore.csv’)
from csv import reader
read_file = reader(opened_file)
apps_data = list(read_file)

ratings=
for row in apps_data[1:]:
rating=float(row[7])
price=float(row[4])
if price > 9.0:
ratings.append(rating)

avg_rating=sum(ratings)/len(ratings)
n_apps_more_9=len(ratings)
n_apps_less_9=len(apps_data[1:0])-len(ratings)

Replace this line with your code

What I expected to happen:
clear

What actually happened:
clear

Replace this line with the output/error

Hi @darieldlc and welcome to the community!

Unfortunately it’s unclear what your actual question is and which mission you’re working on. Can you take a look at this post and update your question accordingly please? Providing a link to the mission will help others to be able to help you. Also, replacing the lines that say “Replace this line with …” makes it easier to understand what’s goin on.

It’s unclear from this what the problem is since what you expected to happen (“clear”) is the same as what actually happened (“clear”). At the same time, I’m not sure what “clear” means here… Can you clarify this a bit more?