title: Improve script for searching palindrome
body: <h1>How can I make it better/more efficiently/elegant?</h1>
  <p>The script works without issues,  but maybe there is a way to improve it?</p>
  <pre><code>def isPalindrome(q):
     first = 0
     second  = len(q)-1
     for symbols in q:
         while first != len(q)-1:
             if q[first] != q[second]:
                 return False
             else:
                 first += 1
                 second -=1
         if first == len(q)-1:
             return True
  </code></pre>