Please send questions to st10@humboldt.edu .
#-----
# Contract: pig_latinize: string -> string
# Purpose: return a somewhat-pig-latin form of <a_word>
# Examples: pig_latinize("apple") == "apple-ay"
#           pig_latinize("pie") == "ie-pay"
#-----

def pig_latinize(a_word):
    if (a_word[0] in 'aeiouAEIUO'):
        return a_word + '-ay'
    else:
        word_length = len(a_word)
        return a_word[1:word_length] + '-' + a_word[0] + 'ay'