Imagine printing the numbers 1 to 1000. You wouldn't write 1000 print lines. A loop runs the same block of code again and again. Python has two kinds: for: do something for each item in a sequence, or ...
covering all the hot paths through the loop. the VM would start tracing there. When the inner loop exits, the VM would detect that a different branch was taken. The VM would try to record a branch ...