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
What does the function zip() do?
How do you define xrange in python 3?
What language is python based on?
Name different types of inheritance in python?
When would you use triple quotes as a delimiter?
Difference between __str__ and __repr__ in python?
What is set type in python?
Is map faster than for loop python?
What is abstract class in python?
How do you sort a list alphabetically in python with sort function?
How do you sort a list in reverse order in python?
Is there a switch or case statement in python?
What is nonetype error in python?
What is __init__.py used for?
How to convert a numpy array to a python list?