Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
L4-HW4-Finall
#python 3.5.2 #------------------------------------------------------------ def x(y): length=len(y) p=0 while p<length: i=0 while i<((length-1)-p): if y[i] > y[i+1]: temp = y[i] y[i] = y[i+1] y[i+1] = temp i=i+1 p=p+1 return y Input=[3,1,1,5,2] print('y=',Input) R=x(Input) print('R=',R)
run
|
edit
|
history
|
help
0
TCS Digital phase 1 12 july 2019
rectangle perimiter
http://rextester.com/HYVN80193
ElaineBrown** rextester.com
PyTeleBook
pyCustomEnum
Fgjei
Fiboncaci series in recursion
time module sleep localtime
PySort