python little programming programming homework help
Create a program that decodes tweet abbreviations. Your program should do the following:
- Allow the user to enter a complete tweet (160 characters or less) as a single line of text. Search the resulting string for abbreviations and print a list of each abbreviation along with its decoded meaning.
- Convert the user’s tweet to a decoded tweet, replacing the abbreviations directly within the tweet.
The decoder should be able to decode the following 30 abbreviations:
2G2BT |
Too good to be true |
AYDY |
Are you done yet? |
BLNT |
Better luck next time |
DKDC |
Don’t know, don’t care |
CID |
Consider it done |
DBEYR |
Don’t believe everything you read |
FWIW |
For what it’s worth |
ETA |
Estimated time of arrival |
GB2W |
Get back to work |
HAND |
Have a nice day |
ICYMI |
In case you missed it |
JIC |
Just in case |
KEWL |
Cool |
LTD |
Living the dream |
MHOTY |
My hat’s off to you |
NGL |
Not gonna lie |
PEBCAK |
QOTD |
Quote of the day |
ROFLCOPTER |
Rolling on the floor laughing and spinning around |
STBY |
Sucks to be you |
TLC |
Tender loving care |
UFN |
Until further notice |
WH5 |
Who, what, when, where, why |
XOXO |
Hugs and kisses |
YHBW |
You have been warned |
VM |
Voicemail |
SLAP |
Sounds like a plan |
LOTI |
Laughing on the inside |
|
Quick question |
MYOB |
Mind your own business |