ammula def remvowel(string): vowels = (‘a’,’e’,’i’,’o’,’u’) for char in string.lower(): if char in vowels: string = string.replace(char,”) print(string) remvowel(‘Hello World’) Log in to Reply
Python
Python code
def remvowel(string):
vowels = (‘a’,’e’,’i’,’o’,’u’)
for char in string.lower():
if char in vowels:
string = string.replace(char,”)
print(string)
remvowel(‘Hello World’)
Mindtree Coding Questions