What is the difference between `deepcopy` and `shallow copy`?
Answer Posted / hr@tgksolutions.com
A shallow copy creates a new object but does not create copies of nested objects, while a deep copy creates copies of all nested objects as well.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why we are using def keyword for method?
What is hello world in python?
Is there a switch or case statement in python? If not then what is the reason for the same?
What is defined isalpha() in python?
What does tuple mean?
Explain assert in action?
Explain about negative indexing?
Which is better c or python?
What is the purpose of pythonpath environment variable?
What is pytables?
What does map function in python do?
How is fail over mechanism works in python?
How do you copy an object in python?
What is superclass and subclass in python?
What is the incorrect declaration of a set?