How do you get programs like bubble sort, quick sort to print a result.

def bubblesort(list):

for passes in range(len(list)-1, 0, -1):

for index in range(passes):

if list[index] < list[index + 1]:

list[index], list[index + 1] = list[index + 1], list[index]

return list

Thanks