Answer Posted / chaitanya
There are two ways in which objects can be copied in python.
Shallow copy & Deep copy.
Shallow copies duplicate as minute as possible whereas Deep copies duplicate everything.
If a is object to be copied then
-copy.copy(a) returns a shallow copy of a.
-copy.deepcopy(a) returns a deep copy of a.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the modes to open a file in python?
Do you know the number of keywords in python?
What is raw_input in python 3?
How many constructors can a class have?
What is zip () in python?
What opens a py file?
Is youtube written in python?
What is the usage of enumerate () function in python?
What is scheduling in threading?
What does none mean in python?
What are the benefits of using python? What do you understand of pep 8?
How to reload a python module?
What is the difference between repr and str in python?
What is map?
What is return in python?