title: Find All longest palindrome - getting only only
body: <p>I need to find all the possible longest palindromes derived a string? </p>
  
  <p>what I am getting is only one:</p>
  
  <pre><code>herp = ""
  
  def isPalindrome(s):
      if s == s[::-1] :
          return True
  
  s = input()
  
  for idy, item in enumerate(s):
      for idx, item in enumerate(s):
          derp = s[idy:idx+1]
          if isPalindrome(derp) and (len(derp) &gt; len(herp)):
              herp = derp
  
  print(herp)
  </code></pre>
  
  <p>for eg. string is <code>NITIN</code> </p>
  
  <p>output : <code>INTNI
         NITIN</code></p>