How is memory managed in Python


     1. Memory managed in python is managed by python private heap space. All python objects and data structures are located in a private heap programmer does not have access to this private heap. The python interpreter takes care of this instead. 

    2. The allocation of heap space for Python objects is done by python’s memory monayerThe core API gives access to some tools for the programmer to code 

    3. Python also has an in-built garbage collector which recycles all the unused memory so that it can be made available to the heap space.