Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bubble sort
#python 3.5.2 def bubbleSort(nlist): for passnum in range(len(nlist)-1,0,-1): for i in range(passnum): if nlist[i]>nlist[i+1]: temp = nlist[i] nlist[i] = nlist[i+1] nlist[i+1] = temp nlist = [14,46,43,27,57,41,45,21,70] bubbleSort(nlist) print(nlist)
run
|
edit
|
history
|
help
0
(P2) Ciągi 2
Python
Making of floor() and ceil() functions
StAr
Doki Doki Study Club p.one
Activity1
0
Viki
PySort
PYTHON 3 ÖDEV :)