title: String comparison and sorting function
body: <p>I'm designing a guess word game and I need some help with one of the functions. 
  The function receives 2 inputs and returns true or false.<br>
  The input my_word contains letters that were guessed and match to a certain word.
  The input other_word is some word to compare with my_input. 
  examples:</p>
  
  <pre><code>&gt;&gt;&gt; match_with_gaps("te_ t", "tact")
  False
  &gt;&gt;&gt; match_with_gaps("a_ _ le", "apple")
  True
  &gt;&gt;&gt; match_with_gaps("_ pple", "apple")
  True
  &gt;&gt;&gt; match_with_gaps("a_ ple", "apple")
  False
  </code></pre>
  
  <p>My problem is applying it to return a False as in the last example and I'm not sure how to do it. This is what I have done so far. It works but not for a case when a one guessed letter in my_word appears 2 time in other_word. In this case I'm returning true but it should be False. 
  The inputs must be the exactly in the format as in the example (space after underscore).</p>
  
  <pre><code>def match_with_gaps(my_word, other_word):
      myWord = []
      otherWord = []
      myWord_noUnderLine = []
      for x in my_word:
          if x != " ": # remove spaces
              myWord.append(x)
      for x in myWord:
          if x != "_": # remove underscore
              myWord_noUnderLine.append(x)
      for y in other_word:
          otherWord.append(y)
  
      match = ( [i for i, j in zip(myWord, otherWord) if i == j] ) # zip together letter by letter to a set
      if len(match) == len(myWord_noUnderLine): # compare length with word with no underscore
          return True
      else:
          return False
  
  
  my_word = "a_ ple"
  other_word = "apple"
  
  print(match_with_gaps(my_word, other_word))
  </code></pre>