code: def to_bool(answer, default):
      
      answer = str(answer).lower()
      default = str(default).lower()
  
      if answer and answer in "yes":
          return True
  
      return False
docs: Converts user answer to boolean