Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
slices, enumerate(), for... in..., if... in..., str.join(), str.isspace() solution in Clear category for Bird Language by Georgie
def translation(phrase):
phrase = list(phrase)
for ind, symbol in enumerate(phrase):
if symbol in "aeiouy":
phrase[ind : ind + 3] = symbol
elif not symbol in "aeiouy" and not symbol.isspace():
phrase[ind : ind + 2] = symbol
return ''.join(phrase)
Jan. 4, 2020
Comments: