Write a program that will take one string as input. The program will then remove vowels a, e, i, o, u from the string. If there are two or more than two vowels that occur together then the program shall ignore all of those vowels.
Sample input:
Cat
Sample output:
Ct
Sample input:
Heel
Sample Output:
Heel
Execution Time limit:
- 10 Sec
Code:
x=input()
array=[]
array2=["a","e","i","o","u"]
for i in range(len(x)):
array.append(x[i])
for k in range(len(array)-1):
if array[k] in array2:
if array[k+1] == array[k]:
break;
else:
array.remove(array[k])
print('.join(array))