
Shobha
The best way to predict the future is to invent it
What is the difference between deep copy and shallow copy in Python?
A shallow copy creates a new object, but the nested objects inside are still references to the original ones. On the other hand, a deep copy generates a completely new object and also duplicates all nested objects, guaranteeing that it operates independently from the original object.