string = input("Type a string: ") if string[::-1] == string: print(string,"This string is Palindrome") else: print(string,"This string is not Palindrome")