i try to iterate through a list and check each value if it is a negative number
for i in listy: if (listy[i]<0):...
for some reason python tries to evaluate listy[0.5]<0 which is the 1st item on the list. How can i fix this ?
Aucun commentaire:
Enregistrer un commentaire