# Checks that users enter an integer # that is more than 13 def int_check(): """Checks users enter an integer more than / equal to 13""" error = "PLease enter an integer more than / equal to 13." while True: try: response = int(input("What is the game goal? ")) if response < 13: print(error) else: return response except ValueError: print(error) # main routine starts here target_score = int_check() print(target_score)