Computer Science, asked by namrata6969, 1 year ago

difference between stack and heap in python ​

Answers

Answered by Anonymous
2

Python divided the RAM into tow parts called Run-time stack and the Heap. ... The Heap is area of RAM where all values (objects) are stored. The run-time stack never contains the object. The run-time stack store only references pointed to corresponding objects in the heap.

follow me !

Answered by Anonymous
2

Answer:

In a stack, the allocation and deallocation is automatically done by whereas, in heap, it needs to be done by the programmer manually. Handling of Heap frame is costlier than handling of stack frame.

Explanation:

Thankss

Similar questions