code: def prompt_y_or_n(self, prompt):
          
  
          ch = self.prompt_input(prompt, key=True)
          if ch in (ord('Y'), ord('y')):
              return True
          elif ch in (ord('N'), ord('n'), None):
              return False
          else:
              self.flash()
              return False
docs: Wrapper around prompt_input for simple yes/no queries.