#Chapter 9 bubble sort numbers = [45,62,13,98,9,50] numItems = len(numbers) for i in range(numItems-1): print ("i =",i) for j in range(numItems - i - 1): print("j =",j) if numbers[j] > numbers[j + 1]: temp = numbers[j] numbers[j] = numbers[j + 1] numbers[j + 1] = temp print (numbers)