The following program decodes a few common abbreviations inonline communication such as messages in Twitter (“tweets”) oremail, and provides the corresponding English phrase.
tweet = input(‘Enter abbreviation from tweet:n’)
if tweet == ‘LOL’:
print(‘LOL = laughing out loud’)
elif tweet == ‘BFN’:
print(‘BFN = bye for now’)
elif tweet == ‘FTW’:
print(‘FTW = for the win’)
elif tweet == ‘IRL’:
print(‘IRL = in real life’)
else:
print(“Sorry, don’t know that one”)
Expand the number of abbreviations that can be decoded. Addsupport for abbreviations you commonly use or search the Internetfor some
Allow the user to enter a complete tweet (160 characters orless) as a single line of text. Search the resulting string forabbreviations
PayPal Gateway not configured
PayPal Gateway not configured