Hey, So part of what didlly is saying is correct BUT this is not a INT this is a Float. Int would be 1 where as a float is 1.00. Best to get this sorted before you get too far along
😀 but lets first dig into whats happening here and why you are having issues
😀
So the first bit you did :-
Python:
print(str(areas.index([-3])))
What you are doing here is trying to get option 3 from a list but its not a list and not coded correctly if you did want to get option 3 you would do this :-
But this is not what you need, so lets move onto what it should be:-
nice and easy
🙂 now the next bit:-
Python:
print(str(areas.count('9.50')))
although your code is correct it wont work. as soon as you put '9.50' you turned that into a string, but in your list it is a float so it will return nothing. But if you do :-
this will work. also just for the future if you do
this will tell you areas is a list, if you replace areas with 9.50 this will tell you its a float and if you do 9 this is a int and '9.50' is a string
🙂