g it with the <code>close()</code> method. This frees up system resources.
      </p>
      <h3>Better Way to Work with Files</h3>
      <p>
        Use the <code>with</code> statement to automatically close files:
      </p>
      <div class="code-block">
        <pre>
# Automatically close file
with open("example.txt", "r") as file:
    content = file.read()
    print(content)
    </pre>
      </div>
      <p>
        <strong>Explanation:</strong> The <code>with</code> block automatically closes the file 