Write a python function to check if the user provided string is palindrome or not a palindrome
Topic: Write a python function to check if the user provided string is palindrome or not a palindrome
Solution
def ifPalindrome(inVar): revInvar = [] for _ in range((len(inVar)-1), -1, -1): revInvar.append(inVar[_]) if revInvar == inVar: return "Palindrome" else: return "Not a palindrome"
List all Python Programs