Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hw5 ss while
#python 3.5.2 #print ("Hello, world!") def SelectionSort(y): length=len(y) position=length-1 while position >0: numby=position while numby < position-1: if y[numby] > y[maxy]: maxy = numby print ("Max number: ", y[maxy]) temp = y[position] y[position] = y[maxy] y[maxy] = temp print ("After swap: ", y) print () numby=numby+1 position=position-1 return y s=[9,8,30,41,0,1,40,6] r=SelectionSort(s) print('r',r)
run
|
edit
|
history
|
help
0
Transpose matrix
python codewars
Short python input
inverse matrix gauss jordan
3-6.격자판 최대합
HW5, SelectionSort FINNAL
PyAbs
Itertools-Cartesian-Product-var-args
Game2
public,protec,pvt