Answered step by step
Verified Expert Solution
Link Copied!

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 partimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago