@@ -4,11 +4,11 @@ Dictionaries
44Python’s built-in dictionary data type provides associative array functionality
55implemented using hash tables. The built-in ``len `` function returns the number
66of key-value pairs in a dictionary. The ``del `` statement can be used to delete
7- a key-value pair. As with :doc: `lists ` , several dictionary methods
8- (:py:meth: `clear <dict.clear> `, :py:meth: `copy <dict.copy> `, :py:meth: ` get
9- <dict.get> `, :py:meth: `items <dict.items> `, :py:meth: `keys <dict.keys> `,
10- :py:meth: `update <dict.update> ` and :py:meth: `values <dict.values> `) are
11- available.
7+ a key-value pair. As with :doc: `sequences-sets/ lists ` , several dictionary
8+ methods (:py:meth: `clear <dict.clear> `, :py:meth: `copy <dict.copy> `,
9+ :py:meth: ` get <dict.get> `, :py:meth: `items <dict.items> `, :py:meth: `keys
10+ <dict.keys> `, :py:meth: `update <dict.update> ` and :py:meth: `values
11+ <dict.values> `) are available.
1212
1313.. code-block :: pycon
1414
@@ -25,18 +25,18 @@ available.
2525 'nicht vorhanden'
2626
2727 Keys must be of immutable type, including :doc: `numbers/index `,
28- :doc: `strings/index ` and :doc: `tuples `.
28+ :doc: `strings/index ` and :doc: `sequences-sets/ tuples `.
2929
3030.. warning ::
3131 Even if you can use different key types in a dictionary, you should avoid
3232 this, as it not only makes it more difficult to read, but also sorting is
3333 also made more difficult.
3434
35- Values can be any type of object, including mutable types such as :doc: ` lists `
36- and :doc: `dicts `. If you try to access the value of a key that is not in the
37- dictionary, a ``KeyError `` exception is thrown. To avoid this error, the
38- dictionary method ``get `` optionally returns a custom value if a key is not
39- contained in a dictionary.
35+ Values can be any type of object, including mutable types such as
36+ :doc: ` sequences-sets/lists ` and :doc: `dicts `. If you try to access the value of
37+ a key that is not in the dictionary, a ``KeyError `` exception is thrown. To
38+ avoid this error, the dictionary method ``get `` optionally returns a custom
39+ value if a key is not contained in a dictionary.
4040
4141``setdefault ``
4242--------------
@@ -134,8 +134,8 @@ Checks
134134 >>> d[("Veit", "Tim", "Monique")] = None
135135
136136 * You can use a :doc: `Dictionary </types/dicts >` like a spreadsheet table by
137- using :doc: `/types/tuples ` as key row and column values. Write sample code to
138- add and retrieve values.
137+ using :doc: `/types/sequences-sets/ tuples ` as key row and column values. Write
138+ sample code to add and retrieve values.
139139
140140 .. code-block :: pycon
141141
0 commit comments