Complex Data Types in Python: Shallow & Deep Copies in Python

Python 3.7
  • 9 Videos | 48m 15s
  • Includes Assessment
  • Earns a Badge
Likes 371 Likes 371
Explore copying operations on containers in Python in this 9-vdeo course, which examines the subtle distinction between shallow and deep copies. Changes made to shallow copies affect the original whereas with deep copies they do not. Learners begin by observing Jupyter notebook in Python, where you will be performing shallow and deep copies of Python strings. You will learn how to create shallow copies of lists, and then create deep copies of lists where changes to the copy do not affect the original. Following this, you will begin working with tuples, a process which you will discover is quite simple because tuples are immutable. So you will learn how to create shallow and deep copies of tuples. You will also learn how deep copies of dictionaries work, and perform shallow and deep copies of sets. In the closing exercise, learners are asked to recall how shallow and deep copies work for complex data types.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    perform shallow and deep copies of Python strings
    create shallow copies of lists
    create deep copies of lists where changes to the copy do not affect the original
    perform shallow and deep copies of tuples
  • specify how shallow copies of dictionaries work
    specify how deep copies of dictionaries work
    perform shallow and deep copies of sets
    recall how shallow and deep copies work for complex data types

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 23s
    UP NEXT
  • Playable
    2. 
    Copying Strings
    4m 28s
  • Locked
    3. 
    Performing Shallow Copies of Lists
    6m 21s
  • Locked
    4. 
    Performing Deep Copies of Lists
    5m 12s
  • Locked
    5. 
    Creating Shallow and Deep Copies of Tuples
    5m 26s
  • Locked
    6. 
    Creating Shallow Copies of Dictionaries
    6m 27s
  • Locked
    7. 
    Creating Deep Copies of Dictionaries
    5m 29s
  • Locked
    8. 
    Creating Shallow and Deep Copies of Sets
    3m 56s
  • Locked
    9. 
    Exercise: Shallow and Deep Copies
    5m 3s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE