()
Module : builtins
Crée un dictionnaire.
📝 Syntaxe
dict(**kwargs) ou dict(iterable)💡 Exemples
dict(a=1, b=2)→ {'a': 1, 'b': 2}dict([('x', 10), ('y', 20)])→ {'x': 10, 'y': 20}Module : builtins
Crée un dictionnaire.
dict(**kwargs) ou dict(iterable)dict(a=1, b=2)→ {'a': 1, 'b': 2}dict([('x', 10), ('y', 20)])→ {'x': 10, 'y': 20}