title: Python delete one, user selected, line from file
body: <p>I have a text file in the following format:</p>
  
  <pre><code>A*
  B#
  C'
  </code></pre>
  
  <p>My program currently allows the user to add to the file, but not delete. I have the following function, however it appears not to work. </p>
  
  <pre><code>delete = input('Enter clue to delete: ')
  with open(CLUEFILE,'r')as f:
      lines = f.readlines()
  with open(CLUEFILE,'w') as f:
      for line in lines:
          if line != delete or line != delete+'\n':
              f.write(line)
  </code></pre>
  
  <p>The code doesn't produce any errors, however no changes are made to the file! I can't understand how the <code>if</code> statement isn't working! Any help if greatly appreciated!</p>