A Complete Guide to Python Dictionariesby@smpnjn
662 reads
662 reads

A Complete Guide to Python Dictionaries

by Johnny Simpson7mOctober 2nd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Python Dictionary is an important way to store data in Python. They let us store information as key-value pairs which are indexed by key name rather than an index. In this guide, we will cover everything you need to know about Python dictionaries. We use curly brackets to define a dictionary, just like in Python sets. We define both keys and values, which is slightly different than sets. You can use the `dict()` function to create a dictionary from variables and update it using the update() function.

People Mentioned

Mention Thumbnail

Company Mentioned

Mention Thumbnail
featured image - A Complete Guide to Python Dictionaries
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite