def bubble_sort(lst):
for i in range(len(lst) - 1, 0 , -1):
for current in range(0, i):
if (lst[current+1] < lst[current]):
temp = lst[current]
lst[current] = lst[current+1]
lst[current+1] = temp
return lst
data = [7, 5, -7, 6, 4, -10]
print(bubble_sort(data))