how to read lines in python from console code example Example: python read lines f = open("filename") lines = f.readlines()