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
Saurabh
@godel godel
teretere
func1
Binary Search and Shell Sort in Python
recursion for adding 2 numbers
PyRegSearch
linked_lists
strong1
lesson7 part2