Oracle interview question

How does memory management work in Python?

Interview Answer

Anonymous

27 Feb 2025

Python uses automatic memory management with reference counting and garbage collection (GC). The GC removes circular references using the generational garbage collector.