Course Solutions Uncategorized (Solved) : Following Program Decodes Common Abbreviations Online Communication Messages Twitter Tweet Q31355957 . . . .

(Solved) : Following Program Decodes Common Abbreviations Online Communication Messages Twitter Tweet Q31355957 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post