ID EN
Built-in Types

fromkeys

Python 3.11

Create a new dictionary with keys from iterable and values set to value.

Syntax

PYTHON
classmethod fromkeys(iterable[, value])

See Also

fromkeys() dict comprehension