from sys import argv from random import shuffle ############## FREE CODE ##################### def swap(x, j, k): if j != k: x[j],x[k] = x[k], x[j] ######### END FREE CODE ##################### def gnome(x): """prec: x is a homogeneous list of sortable items. postc: sorts the list in-place. There is no return value""" pass def minisort(x): """prec: x is a homogeneous list of sortable items. postc: sorts the list in-place using the minisort algorithm we discussed in class.""" pass n = int(argv[1]) x = list(range(n)) shuffle(x) print(x) gnome(x) ## test both on this line print(x)