I\'m trying to compare a string called facility to multiple possible strings to test if it is valid. The valid strings are:
facility
auth, authpriv, daem
Unless your list of strings gets hideously long, something like this is probably best:
accepted_strings = ['auth', 'authpriv', 'daemon'] # etc etc if facility in accepted_strings: do_stuff()