Back to feed

Working with Python Dictionaries

Real Python
Working with Python Dictionaries

EDITOR BRIEF

Python dictionaries store information as key-value pairs. You can create and update them with dictionary literals, the `dict()` constructor, built-in methods, and operators.

INSIGHTS

Dictionaries help organize data so you can look up values by key. Try creating one, changing a value, and using a method to retrieve or update an entry.

CodeFriends courses that build on this story. Practice in the browser with nothing to install.

COMMENTS

0/40
0/2000

Loading comments…