Python
How does c ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How does copy() method differ from deepcopy() in Python?
copy() returns a deep copy on an object while deepcopy() performs shallow copy
deepcopy() method in Python 2.x is called simply copy() in Python 3
copy() method in Python 2.x is called deepcopy() in Python 3
deepcopy() performs deep copy of an object while copy() returns a shallow copy
Explanation
copy() method returns a shallow copy of an object. deepcopy() performs a full deep copy of a given object
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
P
ython
Quiz
Login to learn Python
or
Read more about
Python Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Python quizzes
What is a correct term for the following piece of Python syntax: 3 + 4...
What gets printed: a = b = [1, 2, 3] b[2] = 4 print(a) ...
Is it possible to link a Python program to code written in C?...
What will the output of the following statement be? print "%s is awes...
In a Python 2 new-style class declared as Child(Base), what is the correc...
True or False: Python packages can be imported from inside a Zip file....
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment