Code says that it needs a str not an int
Traceback (most recent call last):
File "python", line 8, in
File "python", line 5, in anti_vowel
TypeError: 'in ' requires string as left operand, not int
Tried to search in a list of characters for each letter in the word and if its not included in that string of characters (vowels) then it would print to the screen.
def anti_vowel(text): text = str(text) vowels ='aAeEiIoOuU' for l in range(0, len(text) - 1): if l not in vowels: print l anti_vowel(raw_input('word'))