+ 2
How is memory managed in Python?
3 Answers
+ 1
Automatically!
+ 1
Bhagirath Dudharejiya I think the same as its been managed in other programming languages. Like you have a stack section, a heap section, another section for static/global variable. Again, I think imo
0
Bhagirath Dudharejiya but keep this in mind, Python memory management is been divided into two parts.
Stack memory: methods and variables are declared in this section.
Heap memory: objects and instances are created in this section.