I was wondering if there is a better way of expressing this if statement:
if any(i in word for i in '@/#')==False:
I am iterating through a list of strings and appending to a new list all of the strings that do not have the above characters (I also want to keep the old list). The above statement works but it is ugly and my IDE is telling me there might be a better way. Is there a way I can sort out the strings I want that is prettier or faster?