if message in ("0", "3", "5", "7"):
...
elif message in ...
would be one way.
If message
is always one character long, you could also use
if message in "0357":
....
But this would also be true if message == "35"
, therefore the warning.
Tim Pietzcker
2010-05-10 13:59:42