We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7360067 commit e24d0f1Copy full SHA for e24d0f1
vowel remover function.py
@@ -1,7 +1,7 @@
1
def vowel_remover(text):
2
string = ""
3
for l in text:
4
- if l.lower() != "a" and l.lower() != "e" and l.lower() != "i" and l.lower() != "o" and l.lower() != "u":
+ if l.lower() not in "aeiou":
5
string += l
6
return string
7
-print vowel_remover("hello world!")
+print(vowel_remover("hello world!"))
0 commit comments