diff --git a/3/3.10 Tweet Decoder/tweet_decoder/main.py b/3/3.10 Tweet Decoder/tweet_decoder/main.py new file mode 100644 index 0000000..d1e9d5c --- /dev/null +++ b/3/3.10 Tweet Decoder/tweet_decoder/main.py @@ -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")