I think you can also do 'not x.startswith("#")' if that's what you mean