While Loops, how do they work?

Both for this code:

i = 0

while i < 10:
    i = i + 1

Note that Memory Graph is discussed here: Request for Feedback: Memory Graph – A Python Visualization Tool for Education