#sample solution
def anti_vowel(text):
newText=""
for c in text:
#if statement should all be on one line
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u" or c == "A" or c == "E" or c == "I" or c == "O" or c == "U":
newText = newText
else:
newText = newText + c
return newText
def anti_vowel(text):
newText=""
for c in text:
#if statement should all be on one line
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u" or c == "A" or c == "E" or c == "I" or c == "O" or c == "U":
newText = newText
else:
newText = newText + c
return newText
No comments:
Post a Comment