I want python to read my input.txt and generate output.txt in same folder input.txt 0 m 100 f 180 f 280 d and output.txt 0 99 m 100 179 f 180 279 f 280 blank d I tried this a lot but didnt get that pattern ... Please please please , somebody solve this for me You may notice that "second column" has "next number-1" of column first. thanks in advance.
Forum Rules