Jessica Brown Posted January 2 Posted January 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 CodeName: Jessica 💻 Linux Enthusiast | 🌍 Adventurer | 🦄 Unicorn 🌐 My Site | 📢 Join the Forum
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now