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 parti need help in program specialy second part 2. A palindrome is

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!