What is the difference between `deepcopy` and `shallow copy`?
Answer Posted / glibwaresoftsolutions
• Shallow copy: Copies only the pointer, not the actual data.
• Deep copy: Creates a new memory allocation and copies the data.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is yaml file in python?
Is python free or paid?
Python read a single character from the user?
How to convert bytes to a string?
Can we return a string in python?
How to minimize the memcached server outages in your python development?
What is thread join in python?
what's wrong with import all?
Should I learn r or python?
Should I learn javascript or python?
How do I run a py file in python shell?
What are private methods in python?
What is the key difference between java and python?
What should I make with python?
Differentiate list and tuple with an example?