Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to combine two dictionaries in Python
ChannelEnthoughtDescription 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
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
- Category
- Science & Technology
- Duration
- 1:29
- Published
- October 29, 2018
- Views
- 16,285
- Likes
- 118
Tags
Share
This tutorial in other languages
- FRComment combiner deux dictionnaires en Python
- ES¿Cómo combinar dos diccionarios en Python
- PTComo combinar dois dicionários em Python
- ITCome unire due dizionari in Python
- DEWie kombinieren zwei Wörterbücher in Python
- NLHoe kan ik twee woordenboeken te combineren in Python
- RUКак объединить два словаря в Python
- PLJak połączyć dwa słowniki w Pythonie
- JAPythonで2つの辞書を結合する方法
- ARكيفية الجمع بين اثنين من قواميس في بيثون
- HIकैसे पायथन में दो शब्दकोशों गठबंधन करने के लिए
- IDBagaimana untuk menggabungkan dua kamus di Python