In [13]:
def remove_e(input_str):
return_str = ""
for character in input_str:
if character is not "e":
return_str = return_str + character
return return_str
In [17]:
def remove_vowels(input_str):
vowels = list("aeiouAEIOU")
return_str = ""
for character in input_str:
if character not in vowels:
return_str = return_str + character
return return_str
In [18]:
remove_vowels("Hello, World!")
Out[18]:
In [ ]: