Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple straightforward stack solution solution in Clear category for Bird Language by MMM_AAA_NNN
VOWELS = "aeiouy"
def translation(phrase):
phrase = list(phrase) + ["."]
cursor = phrase.pop(0)
while cursor != ".":
if cursor.isalpha() and cursor not in VOWELS:
phrase.pop(0)
elif cursor in VOWELS:
phrase.pop(0)
phrase.pop(0)
phrase.append(cursor)
cursor = phrase.pop(0)
return "".join(phrase)
April 1, 2015