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
How to create prompt in the console window?
What are python’s dictionaries?
Is python time time utc?
When would you use triple quotes as a delimiter?
What is composition in python?
What is a lambda form?
What will be the output of data[-2] from the list data = [1,5,8,6,9,3,4]?
What is python coverage?
What is the keyword to import a module in python?
Explain what is Flask & its benefits?
What is data hiding in python?
What is meant by mutex in python?
Tell us what is python? What are the benefits of using python? What do you understand of pep 8?
What is the use of __ init __ py in python?
What is deep copy in python?