Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bird Language by mscislaw
def translate(text: str) -> str:
idx: int = 0
result: list = []
while idx < len(text):
result.append(text[idx])
if text[idx] in 'aeouiy':
idx += 3
elif text[idx].isspace():
idx += 1
else:
idx += 2
return ''.join(result)
June 29, 2021