such as an empty list. To get distinct values, use a :ref:`dict
comprehension <dict>` instead.
- .. method:: get(key, default=None)
+ .. method:: get(key, default=None, /)
Return the value for *key* if *key* is in the dictionary, else *default*.
If *default* is not given, it defaults to ``None``, so that this method
.. versionadded:: 3.8
- .. method:: setdefault(key, default=None)
+ .. method:: setdefault(key, default=None, /)
If *key* is in the dictionary, return its value. If not, insert *key*
with a value of *default* and return *default*. *default* defaults to