title: How can I pop this letter if it exists based on this algorithm?
body: <p>I'm trying to pop any letters given by the user, for example if they give you a keyword "ROSES" then these letters should be popped out of the list.</p>
  
  <p>Note: I have a lot more explanation after the <strong>SOURCE CODE</strong> </p>
  
  <p><strong>SOURCE CODE</strong></p>
  
  <pre><code>  alphabet = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
          encrypted_message = []
          key_word = str(input("Please enter a word:"))
          key_word = list(key_word)
          #print(key_word)
  
          check_for_dup = 0
  
  
          for letter in key_word:
              for character in alphabet:
                  if letter in character:
                      check_for_dup +=1
                      alphabet.pop(check_for_dup)
  
          print(alphabet) 
          print(encrypted_message)
  </code></pre>
  
  <p><strong>SAMPLE INPUT</strong>        </p>
  
  <p>Let's say keyword is "Roses"</p>
  
  <p>this what it gives me a list of the following <strong>['A', 'C', 'E', 'G', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']</strong></p>
  
  <p>But that's wrong It should of just removed the characters that existed in the keyword given by the user, like the word "Roses" each letter should of been removed and not in the list being popped. as you can see in the list the letters "B","D","F","H",etc were gone. What I'm trying to do is pop the index of the alphabet letters that the keyword exists.</p>
  
  <p>this is what should of happened.</p>
  
  <p><strong>["A","B","C","D","F","G","H","I","J","K","L","M","N","P","Q","T","U","V","W","X","Y","Z"]</strong></p>
  
  <p>The letters of the keyword "ROSES" were deleted of the list</p>