def palindrome(s):
          s = "".join([character for character in s.lower() if character.isalnum()])
          return s == s[::-1]
      

      Python language logo
      Palindrome

      Python
      Palindrome
      HGV Public Cookbook

      Function to check whether a string is a palindrome or not.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.