*line python code example Example: print file line by line python Click to copywith open('yourfile.txt','r') as f: lines = f.readlines() f.close()