ID EN
Built-in Types

get

Python 3.11

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.

Syntax

PYTHON
get(key[, default])

See Also

KeyError