Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do you count loops in python?

1085


How does python handle compile-time and run-time code checking?

913


What is the difference between django, pyramid, and flask?

833


What is python metaclass?

1068


How do you use n in python?

820


What is the difference between and ?

889


How do you find the current version of python?

840


Define python?

876


Is python the future of programming?

810


What is anaconda program?

958


How will you find, in a string, the first word that rhymes with ‘cake’?

1458


Can we write else statement try block in python?

911


What is the use of negative indexes?

908


Do you know what is the difference between deep and shallow copy?

984


When do you use list vs. tuple vs. dictionary vs. set?

848