title: python- How do I delete a line from a text file?
body: <p>I'm a beginner in python and I could use some help. Thank you very much.
  I'm confused about how to actually delete a line where you choose the line by input-ing the info.</p>
  
  <p>in my file:</p>
  
  <pre><code>PSP0101
  PCT0101
  PYT0101
  </code></pre>
  
  <p>How do I delete <code>PSP0101</code> where I can input <code>PSP0101</code> and it will disappear from the file?</p>