mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
cleanup
This commit is contained in:
parent
fb81535ffb
commit
e04656170b
@ -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?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user