human
Write me a code to selection Sort VS Bubble Sort and the other steps required given the following:
Selection Sort VS Bubble Sort | .
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to selection Sort VS Bubble Sort and the other steps required.
 def Selection_Sort ( arr , n ) :
	for i in range ( n - 1 ) :
		min_index = i
		for j in range ( i + 1 , n ) :
			if ( arr [ j ] < arr [ min_index ] ) :
				min_index = j
		arr [ i ] , arr [ min_index ] = arr [ min_index ] , arr [ i ]
n = 5
arr = [ 2 , 0 , 1 , 4 , 3 ]
Selection_Sort ( arr , n )
print ( " The ▁ Sorted ▁ Array ▁ by ▁ using ▁ "   \ " Selection ▁ Sort ▁ is ▁ : ▁ " , end = ' ' )
for i in range ( n ) :
	print ( arr [ i ] , end = " ▁ " )