<reponame>prynix/learning-programming
numbers = [10, 8, 5, 13, 2]

print(numbers)

for i in range(1, len(numbers)):
	j = i
	while (j > 0) and (numbers[j] < numbers[j-1]):
		numbers[j], numbers[j-1] = numbers[j-1], numbers[j]
		j -= 1

print(numbers)
numbers = [10, 8, 5, 13, 2]

print(numbers)

for i in range(1, len(numbers)):
	j = i
	while (j > 0) and (numbers[j] < numbers[j-1]):
		numbers[j], numbers[j-1] = numbers[j-1], numbers[j]
		j -= 1

print(numbers)