Python code for Sorting of numbers in Increasing Order ( by selection sort ):
list=dict()
count=int(input('enter the number of total values in list'));
for i in range (0,count):
list[i]=int(input('enter the value'));
print ('the entered unsorted list is as follows');
print dict.values(list)
k=1;
for j in range(0,count-1):
for k in range(j+1,count):
if list[k]<list[j]:
exchange=list[j]
list[j]=list[k];
list[k]=exchange;
print dict.values(list)
list=dict()
count=int(input('enter the number of total values in list'));
for i in range (0,count):
list[i]=int(input('enter the value'));
print ('the entered unsorted list is as follows');
print dict.values(list)
k=1;
for j in range(0,count-1):
for k in range(j+1,count):
if list[k]<list[j]:
exchange=list[j]
list[j]=list[k];
list[k]=exchange;
print dict.values(list)