Antivowel


#1



confusing error message

"'builtin_function_or_method' object has no attribute 'getitem'" error


def anti_vowel(string):
    voweless_list = [] #to be converted to string using join
    for character in string:
        if character not in "aeiouAEIOU":
            voweless_list.append(character)
    return str("".join[voweless_list])


#2

used str to be redundant in return in case it was a single string in a list - dont remember using the .join function


#3

Hi, @mackinthehouse ,

This is not valid syntax for a call to the join method.

It appears to the Python interpreter that you are trying to use voweless_list as a key or an index.


#4

Thank you! I feel dumb haha


#5