HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to add an item to a dictionary in Python

33,579 views October 29, 2018 1:05

Watch on YouTube
ChannelEnthought

Description from the creator

In this short tutorial, you will learn how to insert an item into a dictionary in Python. Want to learn more? See our Python classes at goo.gl/oKSaBU.

Read the documentation for dictionaries here: docs.python.org/3/library/stdtypes.html#mapping…

Code from video:
*****************
employees = {1: 'michael', 2: 'eric'}
employees[3] = 'michael'
employees

Connect with us!
*****************
twitter.com/enthought
facebook.com/Enthought/
linkedin.com/company/enthought

About this tutorial

Enthought published this 1:05 video tutorial on October 29, 2018. It has been watched 33,579 times on YouTube.

Channel
Enthought
Duration
1:05
Published
October 29, 2018
Views
33,579
Likes
172

Tags

Share

This tutorial in other languages