indeed, bad error message.
if they wanted to stick with assertions, they could use if... elif... else: assert False, "thing must be X, Y, or Z"
indeed, bad error message.
if they wanted to stick with assertions, they could use if... elif... else: assert False, "thing must be X, Y, or Z"