title: Creating a program that searches if a word is repeated and how many times it is in a list,
body: <p>So far I have created this:</p>
  
  <pre><code>    a = str(input("Word 1 = "))
      b = str(input("Word 2 = "))
      c = str(input("Word 3 = "))
      d = str(input("Word 4 = "))
      e = str(input("Word 5 = "))
      f = str(input("Word 6 = "))
  
  words = [a, b, c, d, e, f]
  
  def count_words(words):
      for i in words:
          wordscount = {i:words.count(i)}
          print(wordscount)
  
  count_words(words)
  </code></pre>
  
  <p>And this is what comes out:</p>
  
  <pre><code>{'word': 6}
  {'word': 6}
  {'word': 6}
  {'word': 6}
  {'word': 6}
  {'word': 6}
  </code></pre>
  
  <p>And my question is how can I make it so it doesn't print the key in the list if it already has so for example not the above but this:</p>
  
  <pre><code>{'word': 6}
  </code></pre>