Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
loop and skip solution in Clear category for Bird Language by m.kurapov
VOWELS = "aeiouy"
def translation(phrase):
skip, ret = 0, ''
for c in phrase:
if skip < 1:
ret += c
if 'a'<=c<='z':
skip = 2 if c in VOWELS else 1
else:
skip-=1
return ret
March 19, 2020