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 do you count loops in python?
How does python handle compile-time and run-time code checking?
What is the difference between django, pyramid, and flask?
What is python metaclass?
How do you use n in python?
What is the difference between and ?
How do you find the current version of python?
Define python?
Is python the future of programming?
What is anaconda program?
How will you find, in a string, the first word that rhymes with ‘cake’?
Can we write else statement try block in python?
What is the use of negative indexes?
Do you know what is the difference between deep and shallow copy?
When do you use list vs. tuple vs. dictionary vs. set?