Why is this loop not looping more than once?(ANTI_VOWEL problem)


If the input for anit_vowel is "discoaaa" the code return "disco".That is it is looping only once ,Why?

def anti_vowel(txt):
 for f in g:
        for c  in txt:
            if f==c:
                return txt


a function ends the moment a return keyword is reached, this currently happens once the first vowel is found


I am feeling so happy! I just figured that while I playing with the code.Thanks a lot to you .