# 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.
# 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.
+91-8400061384
support@ithunt.org