title: Palindrome check in python
body: <p>Hello to everyone on stack.</p>
  
  <p>I am trying to make a python program capable of searching for palindromes.</p>
  
  <p>If my inputs were simply words to evaluate, I would have had no problem writing the code </p>
  
  <pre><code>def ispalindrome(word):
      return word == word[::-1]
  </code></pre>
  
  <p>but I am trying to do more than this.</p>
  
  <p>I would like to check if a string 'contains' a palindrome</p>
  
  <p>for example,</p>
  
  <pre><code>&gt;&gt;&gt;ispalindrome('rapparee')
  rappar
  </code></pre>
  
  <p>How should I approach this problem?</p>