Page 77 - PYTHON-12
P. 77
n=arr[0]
k=0
for i in range(0,10):
if arr[i]<n :
n=arr[i]
k=i
print('The Lowest number is %d '%(n))
#-------------------------------------------------------------------------------------------------------------------------
----------------
def selection_sort():
for i in range(0,10):
n=arr[i]
k=i
for j in range(i+1,10):
if arr[j]<n :
n=arr[j]
k=j
arr[k]=arr[i]
arr[i]=n
array_operation()