Explain garbage collection with python?
Answer / Narendra Sharma
Garbage Collection in Python is the process of automatically freeing up memory used by objects that are no longer referenced or needed. The Python interpreter uses a combination of reference counting and mark-and-sweep algorithms to manage memory allocation. When an object's reference count reaches zero, it gets removed from memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is unlink in python?
How will you get a 10 digit zero-padded number from an original number?
What is head and tail method for data frames in pandas ?
What is means by string python?
How to share global variables across modules?
What animal sleeps the most?
What is the accomplishment you are most proud of?
How to create prompt in the console window?
Is python open source? If so, why it is called so?
How many name spaces are defined in python?
List out the different types of inheritance available in python?
How does the ternary operator work in python?