Complex Data Types in Python: Shallow & Deep Copies in Python
Python
| Beginner
- 9 videos | 44m 45s
- Includes Assessment
- Earns a Badge
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 coursePerform shallow and deep copies of python stringsCreate shallow copies of listsCreate deep copies of lists where changes to the copy do not affect the originalPerform shallow and deep copies of tuples
-
Specify how shallow copies of dictionaries workSpecify how deep copies of dictionaries workPerform shallow and deep copies of setsRecall how shallow and deep copies work for complex data types
IN THIS COURSE
-
2m 23s
-
4m 28sTo 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
-
6m 21sIn this video, you will learn how to create shallow copies of lists. FREE ACCESS
-
5m 12sIn this video, you will create deep copies of lists where changes to the copy do not affect the original. FREE ACCESS
-
5m 26sIn this video, you will learn how to perform shallow and deep copies of lists. FREE ACCESS
-
6m 27sUpon completion of this video, you will be able to specify how shallow copies of dictionaries work. FREE ACCESS
-
5m 29sAfter completing this video, you will be able to specify how deep copies of dictionaries work. FREE ACCESS
-
3m 56sIn this video, learn how to perform shallow and deep copies of lists. FREE ACCESS
-
5m 3sAfter 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.