code: def help(self, *args):
          
          res = ''
          if len(args) == 0:
              res = 'Help:\n'
          for name, value in inspect.getmembers(self):
              if not inspect.isgeneratorfunction(value):
                  continue
              if name.startswith('_') or (len(args) and name != args[0]) or name == 'run':
                  continue
              doc = inspect.getdoc(value)
              res += name
              if len(args) and doc:
                  res += ': ' + doc
              elif doc:
                  res += ': ' + doc.split('\n')[0]
              res += '\n'
          if len(args) == 0:
              res += '\nhelp command for details about a command\n'
          return res
docs: Show help