This commit is contained in:
Evelyn3440 2024-11-09 19:58:38 -05:00 committed by GitHub
parent 6a4d5c96e1
commit 2b54128444
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,3 @@
alphabet = ["a","b","c"]
def translate(data):
data = data.lower()
data = data.replace("meow","0").replace("mrrp", "1").replace("mreow", "2").replace("mrow", "3").replace(" ", "")
@ -15,4 +13,4 @@ def translate(data):
finalwordlist.append(''.join(lettersinword))
return ' '.join(finalwordlist)
catspeak = input("Please input the cat's words: ")
print(translate(catspeak))
print(translate(catspeak))