Skip to content

Commit e046561

Browse files
author
Mia von Steinkirch
committed
cleanup
1 parent fb81535 commit e046561

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ A Python documentation string is known as docstring, it is a way of documenting
127127

128128
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.
129129

130+
#### What is the difference between deep and shallow copy?
131+
132+
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.
130133

131134
#### What is negative index in Python?
132135

0 commit comments

Comments
 (0)