My current code reads the 1st line, then 3rd, 5th, 7th and so on and adds it to a list.
I want it to read the 2nd, 4th, 6th lines ... and add it to another list.
with open(path) as f:
content = f.readlines()
content = [x.strip() for x in content[::2]]
content[1::2]
– Burhan Khalid