Built-in Types — Python 3 documentation#dict.get

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 never raises a KeyError.

Printed 2026-06-28.

(echo:: @ )