<filename>translator/translator.py
def translate(phrase):
    translation = ""
    for letter in phrase:
        if letter in "aeiouAEIOU":
            if letter.isupper():
                translation = translation + "G"
            else:
                translation = translation + "g"
        else:
            translation = translation + letter
    return translation

print(translate(input("Entera phrase: ")))
<filename>translator/translator.py
def translate(phrase):
    translation = ""
    for letter in phrase:
        if letter in "aeiouAEIOU":
            if letter.isupper():
                translation = translation + "G"
            else:
                translation = translation + "g"
        else:
            translation = translation + letter
    return translation

print(translate(input("Entera phrase: ")))