Remove vowels | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Remove vowels

Enter a word from the user, remove all vowels and print the word without vowels.... Any language is welcomed... Bonus : count the number of vowels.. Happy coding guys :)

13th Oct 2017, 9:58 AM
Chinmoy
Chinmoy - avatar
4 Respostas
+ 6
a=input("Enter text:"\n") vowels=0 for i in a: if i not in 'aeiou': print(i,end='') else: vowels+=1 print("\nNumber of vowels:",vowels) #Python easy-to-do solution
13th Oct 2017, 10:22 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
13th Oct 2017, 12:26 PM
LunarCoffee
LunarCoffee - avatar