I have the lines:
for line in f:
if 'ipsum' in next(f): #just want to check
print("Hello")
What I want is to only check what is there on the next line, not overall jump to the next line. What I want is something like:
for line in f:
if 'ipsum' in next(f): #just checking
print("Hello")
next(f) #then actually jump to the next line
Is there any other way to do this?