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
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?