Question
You are given the following list of words whose reversals are words as well. There are more of those, but let's assume for this exercise
You are given the following list of words whose reversals are words as well. There are more of those, but let's assume for this exercise that the list is comprehensive and contains all possible words of this kind.
reversal_words = ["desserts", "stressed", "live", "evil", "knits", "stink", "sports", "strops", "regal", "lager", "pupils", "slipup", "raw", "war", "pals", "slap"]
Remember, that if you ran the previous cell where the variable reversal_words was defined, you can refer to that list later in the notebook.
Implement a routine with the following behavior:
The input word: knits This word remains a word when reversed! The reversal of that word: stink
Step 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