#!/usr/bin/env python s = -1 while s < 1 or s > 100: try: s = int(input('Enter a number: ')) except: print('Bad umber input')