title: To identify repeated strings and obtain them as a list in Python
body: <pre><code>A = &quot;AEJXKWKJSSSJKZJLJLEJLKXMPPLSSKKDNEMSMLDMMEPPLEJSSTFMM&quot;
  Repeat_Letter : [PPL, JSS]   --&gt; What I want
  </code></pre>
  <p>I want the maximum length of repeated words and get them as a list. For example, if the letter &quot;APPLE&quot; is repeated, not getting a result says AP or APPL is repeated, but hope it is correctly recognized that APPLE is repeated.</p>