Remove the Vowels
Imagine a filter that removes all English vowels from a piece of text and leaves everything else untouched. Write disemvowel, which removes a, e, i, o, and u from the string string, in either uppercase or lowercase. Spaces, punctuation, and consonants should stay exactly where they are.
Примеры
Ввод
"This website is for losers LOL!"Вывод
"Ths wbst s fr lsrs LL!"Ввод
""Вывод
""Ввод
"aeiouAEIOU"Вывод
""Нужно реализовать
def disemvowel(string: str) -> str:
Теги
strings
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit seVisible tests
1
Input
"This website is for losers LOL!"Expected
"Ths wbst s fr lsrs LL!"2
Input
""Expected
""3
Input
"aeiouAEIOU"Expected
""4
Input
"Hello"Expected
"Hll"5
Input
"xyz"Expected
"xyz"6
Input
"!LOL sresol rof si etisbew sihT"Expected
"!LL srsl rf s tsbw shT"Focus radio
Paused · SomaFM · Fluid