Question 9 • Intro to Computer Science B
A text file marks the end of a line with an end-of-line sequence, usually a newline character (or a pair of characters, depending on the system). The file reader detects that marker and treats the text after it as the next line. Python does not need to know a line’s length in advance.
AI-written and checked against the verified answer.