Write a python function to check if a string is palindrome or not and print the result


Topic: Write a python function to check if a string is palindrome or not and print the result

Solution

def isPalindrome(s):
    if (s == s[::-1]):
        print("Given string is palindrome")
    else:
        print("Given string is not palindrome")
s = "malayalam"
isPalindrome(s)



List all Python Programs