... Mark> j = i - 1 Mark> swap_with = l[j] Mark> l[i] = swap_with Mark> l[j] = item ... How about l[i-1], l[i] = l[i], l[i-1] ? It's visually simpler than using a temporary variable and captures the sentiment better I think. Skip