Hi I am trying to compare these two (strings) of numbers.
There may not be a space inbetween the numbers in the file, but here its just for clearity.
I want to take the value of 40 and compare it with 14 then 18,35 and so on until 54 is reached.
(The 07 and 57 would be compared afterwords.)for now I am trying to understand how to reach these other numbers.
comp_b = open("C:\output.txt","r") s = comp_b.read(4)
The output of this code is s=14
14 18 35 47 54 - 57
40 45 49 53 57 - 07
comp_b = open("C:\output.txt","r") s1 = comp_b.read(*The part I don't know*)
I would rather have s=40 first.
So as it is, I don't know the best way to get s=40 then s1=14, then compare s/s1 for equality. yes/no
Afterword' I would compare 40 too 18,35,47,54 in the same manner.
Thanks for any guidlines to this.