How to add exception to random.randint in Python?

Published --