I am looping over all lines one by one using
line = file.readline()
Every line is now searched for a particular string(XYZ) -
line.startswith('XYZ')
I am not able to figure out how to get to couple of lines behind relative to the line where match was found for the string XYZ
.
I understand that this could be something trivial but couldn't make it.