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":
    return str("".join[voweless_list])


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


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.


Thank you! I feel dumb haha