Question: A string is a palindrome if reading it from forward and backward is the same, such as, madam, mom, sos. (Reference: https://en.wikipedia.org/wiki/Palindrome ) Write a

A string is a palindrome if reading it from forward and backward is the same, such as, madam, mom, sos. (Reference: https://en.wikipedia.org/wiki/Palindrome ) Write a Python script that reads strings until the user enters the string "STOP". For each step the user enters a string, the script will print out whether it is a palindrome or not. Finally, if the user enters "STOP", the script will display the longest palindrome and the length of that string. (Assume that the user will enter only one word for each iteration.)

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!