# Functions go here def int_check(question, low, high ): error = f"Oops - please enter an number that is higher or equal to {low} and lower or equal to {high} ." while True: try: response = float(input(question)) if low <= response and high >= response: return response else: print(error) except ValueError: print(error) while True: print() my_num = int_check("Choose a number: ", 0.1, 100) print(f"You chose {my_num}")