I have two files that, for each byte read in one file, something has to be done with the byte at that same position in the other - Xor'ed say.
I was hoping that I could have something like below but I'm having no luck thus far:
c = 0
f1 = list(file1.read())
f2 = list(file2.read())
for (a, b) in f1, f2: # set a and b for each byte in turn in f1 and f2
c = a ^ b
To me this initially felt quite Python like, but I'm beginning to doubt it now.
Any pointers very welcome!