Science, asked by devgupta5298, 1 year ago

Describe Python's garbage collection mechanism in brief?

Answers

Answered by RockyAk47
1
Python uses two strategies for memory allocation reference counting and garbage collection. ... Reference counting works by counting the number of times an object is referenced by other objects in the system. When references to an object are removed, the reference count for an object is decremented.
Similar questions