SyntaxFix
Write A Post
Hire A Developer
Questions
When you only need to check for equality, you can also simply use the in operator to do a membership test in a sequence of accepted elements:
in
if message.value[0] in ('/', '\\'): do_stuff()