Dictionaries
Dictionaries work in the exact same way as Python dictionaries, except for one difference.
In Ask dictionaries can be used with a JavaScript-like syntax (you don't have to put quotes around keys, you can still put them there if you want to):
Example (Ask)
product = {
id: 1,
name: 'Product 1',
price: 40.5
}
Example (Python)
product = {
'id': 1,
'name': 'Product 1',
'price': 40.5
}
Last updated