I wrote this function in Python which takes string as an input and the outputs the same string with all chars in lower case, with vowels removed. It's not working as expected, why is that?
def removingVowels(string):
string.lower()
vowels = ['a','e','i','o','u']
for char in string:
if char in vowels:
del string[char]
return string
print (removingVowels("HadEEl"))