readlines until i run out of lines in pythpn code example Example: python read lines f = open("filename") lines = f.readlines()