title: finding duplicates in a string at python 3
body: <pre><code>def find_duplicate():
      x =input("Enter a word = ")
      for char in x :
          counts=x.count(char)
          while counts &gt; 1:
              return print(char,counts)
  </code></pre>
  
  <p>I've got small problem in there i want to find all duplicates in string but this program give me only one duplicate ex: aassdd is my input function gave me only a : 2 but it need to be in that form a : 2 s : 2 d : 2 thanks for your answers.</p>