SNHU-IT-140/3/3.10 Tweet Decoder/tweet_decoder/main.py

14 lines
302 B
Python

tweet = input('Enter abbreviation from tweet:\n')
tweet_dict = {
'LOL': 'LOL = laughing out loud',
'BFN': 'BFN = bye for now',
'FTW': 'FTW = for the win',
'IRL': 'IRL = in real life'
}
try:
print(tweet_dict[tweet.upper()])
except KeyError:
print("Sorry, don't know that one")