title: Modifying a single line in a file
body: <p>Is there a way, in Python, to modify a single line in a file without a for loop looping through all the lines?</p>
  
  <p>The exact positions within the file that need to be modified are unknown.</p>