strPalindrome

    0

    0

    Mahendra Kumar

    listsProgrammingDSA

    to check whether a given string is palindromic or not

    def ispalindrome(s):
        return s == s[::-1]
    # Driver code
    s = str(input())
    ans = isPalindrome(s)
    if ans:
        print("Yes")
    else:
        print("No")
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.