1data_list = [-5, -23, 5, 0, 23, -6, 23, 67]
2new_list = []
3
4while data_list:
5 minimum = data_list[0] # arbitrary number in list
6 for x in data_list:
7 if x < minimum:
8 minimum = x
9 new_list.append(minimum)
10 data_list.remove(minimum)
11
12print new_list
13
1number=[1,5,6,9,0]
2for i in range(len(number)):
3 for j in range(i+1,len(number)):
4 if number[i]<number[j]:
5 number[i],number[j]=number[j],number[i]
6print(number)