Hi, I wonder what the best way to compare one value in a tuple/list with all other, and not itself.
I'm taking my values from a file and thos file can be very big so I also wonder how to optimize this, not to much so you can't see what it does.
for the moment I use something like this:
f = file(filename) cell2 = 0 while True: line = f.readline() if len(line) == 0: break #do something... cell2 = cell2+1 f.close()
... but I don't think this is a good solution (?). This don't jump over the value itself, and if the static value is the last value in the tuple/list it do not 'restart' from the beginning..
I hope you understand what I want /flaerpen