def hundreds_test(object): input_num = int(input('请输入数字')) result = input_num//100 if result >= 0: print(result) if result < 0: print('请输入不小于100的数字') else: print('请输入纯数字')
x=input('please input an integer of more than 3 digits:') try: x=int(x) x=x//100ifx==0: print('You must input an integer of more than 3 digits.') else: print(x) exceptBaseException: print('You must input an integer')