I can't seem to fully understand this code. Help will be much appreciated. This is a code where when I input a phrase or a word, the result will give me the same thing except for every vowel changed into a "g"
def translate(phrase):
    translation = ""
    for letter in phrase:
        if letter in "AEIOUaeiou":
            translation += "g"
        else:
            translation += letter
    return translation
I can figure everything else out except, the part where translation +="g" I don't get how that will switch every vowel into a "g" So, I would love for someone to walk me through this code, step by step please. Thank you.
 
     
    