text: 
  
  age = -1                    # an initially invalid choice
  while age <= 0:
    try:
      age = int(input('Enter your age in years: '))
      if age <= 0:
        print('Your age must be positive')
    except (ValueError, EOFError):
      print('Invalid response')
  