Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
functions add
teretere
for
validation
ivan2
Q2
time module time.time()
my first print
(P3) Zadanie Kolokwium 2013: Trójkąty i trójkąty
init constructor
stackse - search stackoverflow differently
Please log in to post a comment.