What is the difference between `deepcopy` and `shallow copy`?
Answer Posted / glibwaresoftsolutions
• 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 used for in python?
How long will it take to learn python?
How does break, continue and pass work?
What is the syntax for dictionary comprehension in python?
How would you create an empty numpy array in python?
Is nan in python pandas?
How to open a text file and display its contents?
How can you profile a python script?
How can you make modules in python?
Why was the language called as Python?
Explain me what does the
Explain global and local variables in python?
Is python sorted stable?
What is python good for?
Explain about indexing and slicing operation in sequences?