MbCoding619
7/31/2019 - 9:46 PM

vowelsreplacement

Translate Vowels to G in any phrases

def translate (phrase):
    translation = ""
    for letter in phrase:
        if letter.lower() in "aeiou":
            translation = translation + 'g'
        else:
            translation = translation + letter
     return translation

print(translate(input("Enter a phrase : ")))