1def find_all_vowels(Word: str):
2 if Word == None or Word == "":
3 raise Exception("The arguments 'Word' is None or empty")
4 vowles_in_Word = []
5 Word = Word.upper()
6 Vowles_list = ["A","E","I","O","U"]
7 for character in Word:
8 if character in Vowles_list:
9 vowles_in_Word.append(character)
10 vowles_in_Word = tuple(vowles_in_Word)
11 return vowles_in_Word
12
13print(find_all_vowels("ahkiojkl"))
14
15try:
16 find_all_vowels(None)
17 find_all_vowels("")
18except Exception as error:
19 print("Execption occoured",error)