{} (create)¶
Description¶
To create a dictionary of things, use {key: value, ... }. Put as many key: value pairs as you need between the brackets, separated by commas.
All operators that work on dictionaries can then perform actions on the newly created dictionary.
Examples¶
This creates a dictionary with two entries. One entry about Id has the value 7 and another entry about the Color has the value "red".
An empty dictionary is also valid syntax: