f = open('Python/Stud.txt) lines = f.readlines() #lines in the file for line in lines: #loop line is variable print line #to test SyntaxError: EOL while scanning single-quoted string]