code: def ask_yesno(msg="Proceed?", dft=None):
      
      yes = ["y", "yes", "Y", "YES"]
      no = ["n", "no", "N", "NO"]
      if dft != None:
          dft = yes[0] if (dft in yes or dft == True) else no[0]
      return ask(msg, dft=dft, vld=yes+no) in yes
docs: Prompts the user for a yes or no answer. Returns True for yes, False
      for no.