# Palindrome Check string = input("Enter a string: ") if string == string[::-1]: print("The string is a palindrome.") else: print("The string is not a palindrome.") Output: Enter a string: radar The string is a palindrome.