Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bird Language by PawlakBartosz43
VOWELS = "aeiouy"
def translation(phrase):
i = 0
phrase = list(phrase)
while i < len(phrase):
if phrase[i] not in VOWELS and phrase[i] != ' ':
if phrase[i+1] != ' ':
del phrase[i+1]
elif phrase[i] != ' ':
if phrase[i+1] != ' ':
del phrase[i+1]
if phrase[i+1] != ' ':
del phrase[i+1]
i += 1
print(phrase)
return ''.join(phrase)
Jan. 16, 2017