Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bird Language by tokiojapan55
VOWELS = "aeiouy"
def translation(phrase):
vowles = "aeiouy"
result = ""
if len(phrase) <= 0:
return result
if phrase.find(" ") >= 0:
for word in phrase.split(" "):
if len(result) > 0:
result += " "
result += translate(word)
return result
for v in [v * 3 for v in vowles]:
phrase = phrase.replace(v, v[0].upper())
while len(phrase) > 0:
result += phrase[0]
if len(phrase) <= 1:
break;
phrase = phrase[1:]
if vowles.find(phrase[0]) >= 0:
phrase = phrase[1:]
return result.lower()
June 17, 2020
Comments: