Make a better tweet decoder
This commit is contained in:
parent
411c58ac5d
commit
89b8c97671
|
@ -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")
|
Loading…
Reference in New Issue