Python Land
Published in

Python Land

Things You Didn’t Know About Python Dictionaries

Valid keys, multiple ways to create, default values, view objects

Photo by Joshua Hoehne on Unsplash

The dictionary is one of the language’s most powerful data types. In other programming languages and computer science in general, dictionaries are also known as associative arrays. They allow you to associate one or more keys to values.

--

--

--

Python articles for all types of programmers, from beginner to expert, from DevOps to Data Scientists

Recommended from Medium

New Prototype for Shield Finance Market Crash Protection App

Python “multiprocessing” “Can’t pickle…”

Small Businesses Hit the Jackpot with iOS Development

Magic behind the JavaScript engines Part-3 Orinoco Garbage collector

CrowFinance AMA Transcript by CRYPTO TALKZ

Introduction

Developing an app in-terminal art

One dimensional cutting stock problem

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Erik van Baaren

Erik van Baaren

Software developer by day, writer at night. Owner of https://python.land. Subscribe to Medium to read all my articles and those of other writers.

More from Medium

Python Structural Pattern Matching, you didn’t know you need until you have it!

What is Dependency Inversion in Python?

8 Advanced Python Tricks Used by Seasoned Programmers

10 Advanced Features of Tuples that Level Up Your Skills in Python