Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.txtStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started