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
Rhymes child
Python3: Class I : Person (ClassMethod)
Keygen for 010 Editor
pico menu
PyRef
prime number
Minimum Positive Integer
Operator overloading.py
(P2) Ciągi 2
Set