Answer the question
In order to leave comments, you need to log in
How to make the read words from the list read as separate words and not just as a set of characters?
if any(x in status.text.lower() for x in config.search_keywords)
config.search_keywords = ['rt','fav'] ## Список в котором нужно найти совпадения
Answer the question
In order to leave comments, you need to log in
actually the condition is hammered correctly. if you remove the variables, you will get the correct result,
I think the problem is in the values. break it down into simple variables and then you will see what the problem is. possible even with data types
status_low = status.text.lower()
search_keywords = config.search_keywords
if any(x in status_low for x in search_keywords)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question