From e04656170bc3223f3bd0790f947e6e9a741cf4b9 Mon Sep 17 00:00:00 2001 From: Mia von Steinkirch Date: Wed, 8 May 2019 12:06:02 -0700 Subject: [PATCH] cleanup --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1ad398e..b5fde6b 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,9 @@ A Python documentation string is known as docstring, it is a way of documenting To copy an object in Python, you can try copy.copy () or copy.deepcopy() for the general case. You cannot copy all objects but most of them. +#### What is the difference between deep and shallow copy? + +Shallow copy is used when a new instance type gets created and it keeps the values that are copied in the new instance. Whereas, deep copy is used to store the values that are already copied. #### What is negative index in Python?