space And one is list of banned words. For each iteration of the message text split by space, if iteration is not in my list of banned words, do something. But what happens is it does that something many times. For each word in the message that is not banned. How can I do it once but still check my condition many times?
maybe look at sets or bisect
Обсуждают сегодня