Preparing git repo for final project
This commit is contained in:
9
problems/pset0/faces/faces.py
Normal file
9
problems/pset0/faces/faces.py
Normal file
@@ -0,0 +1,9 @@
|
||||
def replace_emoticons_with_emojis():
|
||||
input_string = input("Say something quickly and I will repeat it slowly!\t\t")
|
||||
for emoticon, emoji in {':)': '🙂', ':(': '🙁'}.items():
|
||||
input_string = input_string.replace(emoticon, emoji)
|
||||
print(input_string)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
replace_emoticons_with_emojis()
|
Reference in New Issue
Block a user