Hey guys, I have one problem. I have this code:
negative_words = ["concerned", "behind", "danger", "dangerous", "alarming", "alarmed", "out of control", "help", "unhappy", "bad", "upset", "awful", "broken", "damage", "damaging", "dismal", "distressed", "distressed", "concerning", "horrible", "horribly", "questionable"]
print(negative_words)
for each_word in negative_words:
negative_words.append(each_word.title)
print(negative_words)
At the end I need in list ‘negative_words’ the old words plus old words with first letter to be upper case, so that is .title funciton to my knowledge.
I always get the error: " AttributeError: ‘builtin_function_or_method’ object has no attribute ‘title’ "
What should I change?