How to copy a dictionary in Python

Опубликовано: 01 Октябрь 2024
на канале: Enthought
1,881
9

In this short tutorial, you will learn how to make a copy of a dictionary in Python using the copy method. Want to learn more? See our Python classes at https://goo.gl/QxmDtq.

Read the documentation for dictionaries here: https://docs.python.org/3/library/std...

Code from video:
*****************
employees = {1: 'michael', 2: 'eric', 3: 'michael'}
employees.copy()

Connect with us!
*****************
  / enthought  
  / enthought  
  / enthought