Basic checks

Check ranges, regex, etc.

def get_int():
    while True:
        try: return int(input())
        except ValueError: print('Invalid')