This example shows how to write multiple lines to a file in Python. The program opens a file in write mode, writes 'Hello' followed by a new line, then writes 'World' with a new line. Each write adds text to the file. Closing the file saves the changes. Using '\n' ensures each line appears separately. The execution table traces each step and the file content after each write. The variable tracker shows the file object state. Key moments clarify why '\n' is needed and why closing the file matters. The quiz tests understanding of file content at each step and the role of '\n'.