Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
L4-HW final
#python 3.5.2 def x(y): length=len(y) p=0 while p<length: # print ('p: ', p) i=0 while i<((length-1)-p): #print ('Possible values for i:',i) if y[i] > y[i+1]: temp = y[i] y[i] = y[i+1] y[i+1] = temp i=i+1 p=p+1 #print (i,'-->',y) # print () # print ('------------------------------------------------') return y Input=[3,1,1,5,2] print('y=',Input) R=x(Input) print('R=',R)
run
|
edit
|
history
|
help
0
shuru15
Email_Python
sai hw user enter table
if else
gj
oops1.py
PyTypeClass
Restaurant 1
Lcm and hcf
H.W.5 ALL Solutions