
fundamentals
Heaps and stacks in Python
TL;DR: Heaps are where a Python program stores its data. Stacks are where the computations happen. This post breaks down what happens in RAM when Python runs a simple script. The Script: name = "Eli" x = 2 + 3 y = sorted([name, x]) Step 1: python script.py When