Uppercase Vowels
Level: Beginner (score: 2)
The Python function uppercase_vowels takes in string or filename and returns string with vowels uppercased.
The string can contain punctuation, uppercase consonants but in the final result vowels should be uppercased and consonants should be lowercased and punctuations should be removed while preserving spaces. Extension of file should not be uppercased.
Examples of extensions:
- jpeg
- jpg
- mp3
- mp4
- png
- txt
- exe
Example Usage:
uppercase_vowels("abcDeFGHIJ") # AbcdEfghIjuppercase_vowels("..-") # " "uppercase_vowels("file monk.exe") # fIlE mOnk.exe
script