Question: i need help in program specialy second part 2. A palindrome is a word that remains the same when all of its letters are reversed:
i need help in program specialy second part
2. A palindrome is a word that remains the same when all of its letters are reversed: for example, radar' and 'tenet, are both palindromes. .Write a program which asks the user to input a word and then checks whether it is a palindrome or not, and returns (prints) True when itis and False when it is not. Your program should make some provisions to check whether the te (for example if it is of 'character' data type) or not. Now, expand your program (or create a new) to read every word in a text file called words.txt (which can be found in ELE), and then to print each word if it is a palindrome into a new text file called palindromes.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
