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 is the input function in python?
Describe python usage in web programming?
Whenever you exit python, is all memory de-allocated?
Is java or python better?
Which is faster c++ or python?
How can you create a gui based application in python for client-side functionality?
What are the python types?
How to convert sting to number and viceversa in python?
How to convert a numpy array to a python list?
What does netflix use python for?
What is the use of globals() function in python?
What is the purpose of pythonpath environment variable?
Write program to validate the email address in python?
How to reload a python module?
Is instagram written in python?