Anti_vowel HELP!


Anti Vowel

Whaat am i doin g wrong(probably everything) I have seen other ways of doing it but is this one not correct?

Replace this line with your code. 
    vowels = ("a","e","i","o","u","A","E","I","O","U")
def anti_vowel(text):
   for letters in value:
        if text in vowels:
            text.replace(" ")
            print text


uhm... i don't even know where to start, sorry. lets start at the beginning:

vowels = ("a","e","i","o","u","A","E","I","O","U")

i assume you want a list with the vowels? list have square brackets in python:

aList = [1,2,3]

okay, next bit:

for letters in value:

value doesn't exist? lets look at something simple:

test = "abcdefgh"
for i in test:
   print i

test is the string which holds all the letters, i will hold the letters one by one (as you can see, if you run this code), look at your loop again? Value doesn't exist, so how is that loop suppose to work?

same for if text in vowels? Not sure what you are trying to do there.

.replace() will replace all instances of something in a string, see here, it is possible to use .replace(), not sure if it is the best method. make sure to store your replace actions somewhere, text.replace(" ") won't be saved anywhere.


Thanks dude you the man`
I really need to get my ■■■■ together