Question
I need a Python program that reads user input as strings, until the keyword Done is written. Then, I must check to see whether the
I need a Python program that reads user input as strings, until the keyword "Done" is written. Then, I must check to see whether the strings that were inserted were a palindrome (words that can be read backwards, ignoring cases and spaces). Then, the strings that ARE palindromes must be thrown into a dictionary and printed out (key is counter, and value is string). Assume that input strings are only lower and upper case letters and spaces. I'm attaching a sample of how it should run:
Please avoid using Python's built in libraries for this program. It should be simple. Thank you!
Enter the strings: taco cat swap paws Who are you people? Wumbology Rats live on no evil star Done The plaindromes are: (l: 'taco cat', 2: 'swap paws', 3: 'Rats live on no evil star'hStep 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