In Python, you can create a selection sort programme by writing a function that accepts an array as input and sorts it in place.