HDTutorial
EN

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

How to combine two dictionaries in Python

16,285 views October 29, 2018 1:29

Watch on YouTube
ChannelEnthought

Description from the creator

In this short tutorial, you will learn how to combine two dictionaries together in Python using the update method. Want to learn more? See our Python classes at goo.gl/9gcLYc.

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

Code from video:
*****************
employees = {1: 'michael', 2: 'eric', 3: 'michael'}
new_hires = {4: 'erick', 1: 'julia'}
employees.update(new_hires)
employees

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

About this tutorial

Enthought published this 1:29 video tutorial on October 29, 2018. It has been watched 16,285 times on YouTube.

Channel
Enthought
Duration
1:29
Published
October 29, 2018
Views
16,285
Likes
118

Tags

Share

This tutorial in other languages