I can't understand why this code returns False:
list_of_disks = [[170, 158, 470, 0.1], [135, 176, 410, 0.2], [100, 193, 350, 0.3], [170, 458, 470, 1.1]]
def f1(pos):
for x in range(0, len(list_of_disks)):
if list_of_disks[x][3] == pos:
print list_of_disks[x+1][3] - 0.1, list_of_disks[x][3]
print list_of_disks[x+1][3] - 0.1 == list_of_disks[x][3] # Why is this False..?
break
f1(0.2)
When I print out the 2 values, they seem to be the same..? Hope someone can help me out here, thanks!