code: def cdpop():
      
      if len(_cdhist) >= 1:
          old = _cdhist.pop()  # Pop from history.
          os.chdir(old)
          return old
      else:
          return pwd()
docs: Return the last directory.
  
      Returns absolute path to new working directory.