Remove vowels in a string
Problem to remove vowels in a string. Vowels character are (a,e,i,o,u).
Example-1:
Input : s = "mycrazycoding" Output : mycrzycdng Explain : Remove vowel character (a,o,i).
Example-2:
Input : s = "helloworld" Output : hllwrld Explain : Remove vowel character (e,o).
Solution
n = "mycrazycoding" a = "aeiou" d = "" for i in range(len(n)): if(n[i] in a): continue else: d += n[i] print(d)
Output
mycrzycdng