Write the function isPalindrome (txt). This function takes a string as a parameter and returns the Boolean value True if the string is a palindrome, False otherwise. • A string is a palindrome if it is spelled the same both forward and backward. • Sentences can also be palindromes, therefore, punctuation, capitalization, and spaces should be ignored. Numbers should not be ignored • If the user provides an input that is not a string, program should return the Boolean value False
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write the function isPalindrome (txt). This function takes a string as a parameter and returns the Boolean value True if the string is a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Write the function isPalindrome (txt). This function takes a string as a parameter and returns the Boolean value True if the string is a palindrome, False otherwise. • A string is a palindrome if it is spelled the same both forward and backward.