Skip to content

Dictionary

Dictionary is a data structure consisting of one or more key/value pairs. Generally you can use String and Number types as the key, the value can be any type.

Dictionary is also called Mapping table, which is represented in Python as follows:

{"username": "thomaspan-ym", "first_name": "Thomas", "last_name": "Pan"}

Where each key/value pair is separated by a comma, and the key and value are separated by a colon. Dictionary is also a variable type in YooginX.

Actions

Get Value By Key

Get the corresponding value by a specified key from a Dictionary variable.

  • Dictionary variable: Select a Dictionary variable.
  • Key: Enter a key.
  • Assign the value to variable: Store the corresponding value to a variable.