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 is lambda function ?
What is a docstring?
Is there a double type in python?
What are the different ways to create an empty numpy array in python?
How to overload constructors or methods in python?
What is the function of gil in python?
Tell me how does the ternary operator work in python?
What is flask python used for?
What is the scipy?
How will you check python version?
What is numpy? Is it better than a list?
How do you monitor the code flow of a program in python?
What is pip?
How can you keep track of different versions of code?
What is blob in python?