Palindrome

    0

    0

    HARIGOVIND VALSAKUMAR

    PythonPalindrome
    HGV Public Cookbook

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

    def palindrome(s):
        s = "".join([character for character in s.lower() if character.isalnum()])
        return s == s[::-1]
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.