week-3 #4

Merged
Kenwood merged 7 commits from week-3 into master 2021-01-24 03:03:01 -05:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit 89b8c97671 - Show all commits

View File

@ -0,0 +1,13 @@
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")