Solution Exercise 9

Write a function that capitalizes all the vowels in a string.

Hint:
It is up to you to diecide if you want to consider Y a vowel or not

def vowels_to_upper(text):
    vowels = "aeiouy"
    newStr = ""
    for c in text:
        if c in vowels:
            newStr += c.upper()
        else:
            newStr += c
    return newStr

def main():
    print(vowels_to_upper("hi there. This is a great program"))
           
if __name__ == '__main__':
    main()