Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, November 29, 2012

Codecademy: anti_vowel


#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

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts