What is the difference between `deepcopy` and `shallow copy`?
Answer Posted / nashiinformaticssolutions
• 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 will be the output of the code:def foo (i=[])?
Is there a null in python?
What is docstring? How to define it?
What is a negative indexing in python?
What is python known for?
How do I copy an object in python?
How do you include a string in python?
Which python library would you prefer to use for data munging?
What are python dictionaries?
What does netflix use python for?
What are literals in python?
What is an interpreter for python?
How do I run Apache in Python?
Is python interpreted language?
How do you clean pyc files?