When I run the program I get the error: "string indices must be integers, not str". I'm not sure where going wrong. Thanks in advance for the help!

def anti_vowel(text):
    for c in "aeiouAEIOU":
        if c == text[c]:
    return text


strings are immutable, you can't remove/pop from strings


Too simple... Thanks!!


if you need more help, post an updated version of your code


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.