What is the difference between `deepcopy` and `shallow copy`?
Answer Posted / nashiinformaticssolutions
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
How python can be used in software testing?
What is ord () in python?
Mention the floor division available in python
What is the purpose of __ init __?
What is a pep python?
Can you sort a dictionary python?
What are accessors, mutators, and @property?
What is the usage of dir() and dir() function in python?
How do you get a list of all the keys in a dictionary in python?
Where is python in anaconda?
What are dict and list comprehensions?
How do I create a python package in pycharm?
What is argument in a function?
What are tuples in python? How differ with lists?
How do you define a function in python 3?