Computer Science, asked by akki4150, 11 months ago

Does Python support automatic garbage collection ?

Answers

Answered by lChanul
1

Answer:

Garbage Collection in Python. Python's memory allocation and deallocation method is automatic. The user does not have to preallocate or deallocate memory similar to using dynamic memory allocation in languages such as C or C++.....

plzzz mark the answer brainliest! ☺❤✌

Answered by brokendreams
1

Yes, Python support automatic garbage collection.

Explanation:

  • Python is a high-level language that is used for website development, GUI application development, etc.
  • The allocation and the deallocation of memory occur automatically in python.
  • The memory allocation and deallocation in python are similar to the dynamic memory allocation that is used in languages like C and c++.
  • The memory allocation in python language is done using two im[portant strategies such as Garbage collection and reference counting.
  • Reference counting mainly focuses on the number of times an object gets referenced by another object.
  • The reference count of an object will get decremented when the references to an object get removed.

Learn more on:

https://brainly.in/question/5482330

Describe Python's garbage collection mechanism in brief?

https://brainly.in/question/6217137

What is the difference between c++ and python

Similar questions