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

Python    |    Beginner
  • 9 videos | 44m 45s
  • Includes Assessment
  • Earns a Badge
Rating 4.7 of 414 users Rating 4.7 of 414 users (414)
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

  • 2m 23s
  • 4m 28s
    To find out how to perform shallow and deep copies of Python strings, consult a Python reference guide or search for the information online. FREE ACCESS
  • Locked
    3.  Performing Shallow Copies of Lists
    6m 21s
    In this video, you will learn how to create shallow copies of lists. FREE ACCESS
  • Locked
    4.  Performing Deep Copies of Lists
    5m 12s
    In this video, you will create deep copies of lists where changes to the copy do not affect the original. FREE ACCESS
  • Locked
    5.  Creating Shallow and Deep Copies of Tuples
    5m 26s
    In this video, you will learn how to perform shallow and deep copies of lists. FREE ACCESS
  • Locked
    6.  Creating Shallow Copies of Dictionaries
    6m 27s
    Upon completion of this video, you will be able to specify how shallow copies of dictionaries work. FREE ACCESS
  • Locked
    7.  Creating Deep Copies of Dictionaries
    5m 29s
    After completing this video, you will be able to specify how deep copies of dictionaries work. FREE ACCESS
  • Locked
    8.  Creating Shallow and Deep Copies of Sets
    3m 56s
    In this video, learn how to perform shallow and deep copies of lists. FREE ACCESS
  • Locked
    9.  Exercise: Shallow and Deep Copies
    5m 3s
    After completing this video, you will be able to recall how shallow and deep copies work for complex data types. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.7 of 572 users Rating 4.7 of 572 users (572)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Journey Python 3
Rating 4.8 of 10 users Rating 4.8 of 10 users (10)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 291 users Rating 4.6 of 291 users (291)
Rating 4.5 of 226 users Rating 4.5 of 226 users (226)
Rating 4.6 of 255 users Rating 4.6 of 255 users (255)