Skip to content

Commit ca9b274

Browse files
committed
Add new file
1 parent 76221d1 commit ca9b274

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

anti_vowel.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Define a function called anti_vowel that takes one string,
2+
# text, as input and returns the text with all of the vowels removed.
3+
4+
def anti_vowel(text):
5+
word = ""
6+
for i in text:
7+
if i not in "aeiouAEIOU":
8+
word += i
9+
return word
10+
11+
print anti_vowel("mayuko")

0 commit comments

Comments
 (0)