Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Tiraiiicykoyyy Tiaaaseky solution in Clear category for Bird Language by tanyavoid
import re
VOWELS = "aeiouy"
def translation(phrase):
# indexes of all symbols except any vowels
non_vowels = [i for i, l in enumerate(phrase) if l not in VOWELS]
# starting indexes of triple vowels
triples = [t.span()[0] for v in VOWELS for t in re.finditer(v * 3, phrase)]
# sort them together and get substring based on final indexes
return ''.join([phrase[i] for i in sorted(non_vowels + triples)])
April 20, 2020