#Bubble Sort nums = [9, 4, 5, 1, 3, 7, 6] for i in range(len(nums)): for j in range(1, len(nums)): if nums[j] < nums[j - 1]: nums[j], nums[j - 1] = nums[j - 1], nums[j]