← Retour à la référence Python

()

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}
EdTech AI