title: Checking if a string is a palindrome without using [::-1] in python
body: <pre><code>def checker(string):
      collection=list(string)
      print(collection)
      while string.isalpha()==True:
          copy_collection=collection
          copy_collection.reverse()
          print(copy_collection)
          if copy_collection==collection:
                  print(&quot;The string is a palindrome&quot;)
          else:
              print(&quot;The string is not a palindrome&quot;)
          break
      
  name=input(&quot;Enter a string: &quot;) 
  checker(name)
  </code></pre>
  <p>I wanted to know if the string input by the user is a palindrome.
  Most of the solution suggests using [::-1]. Is it possible to do without using that because our lecturer has not taught us that and told us to not go outside the course to write the program.</p>
  <p><strong>if copy_collection==collection:</strong> I think the problem is here because it will print out &quot;the string is a palindrome&quot; even if it is not.</p>
  <p>Thanks in advance.</p>