mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
cleanup
This commit is contained in:
parent
fb81535ffb
commit
e04656170b
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue