Hacker News new | ask | show | jobs
by snowstormsun 866 days ago
assert x >= 1 and x <= 10, "x is out of the allowed range"

What novel way to add validation in python?