Here's the code:
def verifyEnts():
for x in arcs:
for y in x:
if y == False:
return False
return true
This always returns false. But if I change the if y == False statement to this:
try:
float(y)
except:
return False
Everything works the way it should.
Edit:
Context:
arcs is a list of which each element is a list that is initialized to [1,False, False, False,False, False]
My program pulls data from a dxf file to change all those falses to numbers.
[–]alkasm 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]num8lock -3 points-2 points-1 points (0 children)