Quick sort (in place) in Python

Drag and drop the lines into the box on the right. Put the partition function first and the quicksort one underneath.