code: def ls_dir(dirname):
      
      ls = os.listdir(dirname)
      files = [p for p in ls if os.path.isfile(os.path.join(dirname, p))]
      dirs = [p for p in ls if os.path.isdir(os.path.join(dirname, p))]
      return files, dirs
docs: Returns files and subdirectories within a given directory.
  
      Returns a pair of lists, containing the names of directories and files
      in ``dirname``.
  
      Raises
      ------
      OSError : Accessing the given directory path failed
  
      Parameters
      ----------
      dirname : str
          The path of the directory to be listed