SyntaxFix
Write A Post
Hire A Developer
Questions
This should also work and is a closer answer to what is asked in the question:
for i in range(len(x)): if valeur.item(i) <= 0.6: print ("this works") else: print ("valeur is too high")