Question: For Python 3: You are to write a program that converts sentences constructed using text message (SMS) slang into sentences using the proper King's English.

For Python 3:

For Python 3: You are to write a program that converts sentences

You are to write a program that converts sentences constructed using text message (SMS) slang into sentences using the proper King's English. Your program should be aware of the following SMS slang equivalences: Punctuation marks will mess up your program if you are not careful. You will need to check for punctuation, save the punctuation, perform the translation, and then put the punctuation mark back. You can check if the last character of a word is a punctuation mark using: if word[-1] in ".?!, ;: ": print "The last character is a punctuation mark!!" The last character can be trimmed using the string.rstrip() method Your program should take input from the user (written in SMS slang) and convert it into the King's English. Your program should make use of a dictionary. Show your completed program to the TA and demonstrate that it works. Example Output: Enter message to translate: y r u 18? Message in the King's English: why are you late

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!