313-8 Comparison operators

I would like to know why the following lines (answering to the 2nd and 3rd part of the exercise question) are not correct.
The question can be found on this link.

n_apps_more_9=0
for row in apps_data [1:]:
    price=float(row[4])
    if price>9.0:
        n_apps_more_9=n_apps_more_9+1
        
n_apps_less_9=0
for row in apps_data [1:]:
    price=float(row[4])
    if price =< 9.0:
        n_apps_less_9=n_apps_less_9+1

Hi @allahasra20, welcome to the community! Check out your operator in the if-statement:
if price =< 9.0.

1 Like

Hello,

I’m working on comparison operators and received an output that shows I have the correct answers. However, I keep receiving a “TypeError: ‘int’ object is not iterable” message. Can somebody help me figure out where I’m messing up at?

Here’s the link to problem and my code: https://app.dataquest.io/m/313/conditional-statements/8/comparison-operators