Question: using python3 (Do not use regular expressions, no tuples, no methods of string, etc.) write a program called reversibleSentence ask for a sentence from user

using python3 (Do not use regular expressions, no tuples, no methods of string, etc.)

write a program called reversibleSentence ask for a sentence from user if sentence is the same read from left to right or right to left, then print "the sentence is reversible", else print "the sentence IS NOT reversible" ignore any punctuation marks and spaces: ! # $ % & ' () * + , - . / : ; " < = > ? @ [\) ^ _ ` {|} ~ you should consider upper case and lower case different examples of use % reversibleSentence.py enter a sentence: anna the sentence is reversible % reversibleSentence.py enter a sentence: civic the sentence is reversible % reversibleSentence.py enter a sentence: kayak the sentence is reversible % reversibleSentence.py enter a sentence: rotator the sentence is reversible % reversibleSentence.py enter a sentence: don't nod. the sentence is reversible % reversibleSentence.py enter a sentence: I did, did I? the sentence is reversible % reversibleSentence.py enter a sentence: I din't, didn't I? the sentence IS NOT reversible % reversibleSentence.py enter a sentence: my gym! the sentence is reversible % reversibleSentence.py enter a sentence: red rum, sir, is murder the sentence is reversible % reversibleSentence.py enter a sentence: no lemon, no melon the sentence is reversible % reversibleSentence.py enter a sentence: No lemon, no melon the sentence IS NOT reversible % reversibleSentence.py enter a sentence: abcde frg htk kth gr the sentence IS NOT reversible % reversibleSentence.py enter a sentence: anna katak anna the sentence is reversible % reversibleSentence.py enter a sentence: anna katay anna the sentence IS NOT reversible % reversibleSentence.py enter a sentence: abcd abcd abcd the sentence IS NOT reversible % reversibleSentence.py enter a sentence: aaa bbb ccc ccc bbb the sentence IS NOT reversible % reversibleSentence.py enter a sentence: no melon no melon the sentence IS NOT reversible

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!