import math 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 <= high: return response else: print(error) except ValueError: print(error) radius = int_check("Enter radius: ", 0.1, 100) circumference = 2 * math.pi * radius area = math.pi * radius * radius circ= f"The circumference of the circle is: {circumference:.2f} " print(circ) ar = f"The area of the circle is: {area:.2f} " print(ar)