Bubble sort: the Python, one line at a time

Python


    

The list: items (dark grey = already in its final place, but every pass still compares it)

pass–
swapped–
i–
temp–

Output (print)