# reading in from a file def main(): # open file. The 'r' indicates that you're reading in from the file. # The other option is 'w' which means that you're writing to the file. inFile = open('C:/Temp/students.txt','r') # set up a for loop that runs 15 times: for number in range(15): # read in 1 line from the file: line = inFile.readline() # print the name just read in: print(number,'name read in from file:',line,end="") main()