Applying :func:`iter` to a dictionary always loops over the keys, but
dictionaries have methods that return other iterators. If you want to iterate
over values or key/value pairs, you can explicitly call the
- :meth:`values` or :meth:`items` methods to get an appropriate iterator.
-:meth:`~dict.values` or :meth:`~dict.items` methods to get an appropriate iterator.
++:meth:`~dict.values` or :meth:`~dict.items` methods to get an appropriate
++iterator.
The :func:`dict` constructor can accept an iterator that returns a finite stream
of ``(key, value)`` tuples: