How Logic Works

Dictionary / Object

A collection of key-value pairs.

Definition

A collection of key-value pairs. Instead of accessing items by position (like a list), you access them by name. This is how most real-world data is structured in code.

Example

student = {'name': 'Alex', 'age': 13, 'grade': 8} — you can access student['name'] to get 'Alex'.

See it in context Learn how Dictionary / Object fits into the bigger picture of how software actually works.

Read the Guide →