Posted January 2Jan 2 Challenge: Write a program that checks if a given string is a palindrome. A palindrome is a word, phrase, number, or sequence of characters that reads the same backward as forward, ignoring spaces, punctuation, and capitalization. Requirements: Accept user input for the string. Normalize the string by removing non-alphanumeric characters and converting it to lowercase. Check if the normalized string is a palindrome. Print True or False based on the result. Bonus: Extend the program to handle numeric palindromes (e.g., 12321). Allow the user to check multiple strings in one run. Example Output: Input: "A man, a plan, a canal, Panama!" Output: True Input: "Hello, World!" Output: False
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.