code: def popitem (self):
          
          if self._keys:
              k = self._keys[0]
              v = self[k]
              del self[k]
              return (k, v)
          raise KeyError("popitem() on empty dictionary")
docs: Remove oldest key from dict and return item.