Commit 12743a5f by BellCodeEditor

auto save

parent 7ec62f9e
Showing with 9 additions and 8 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91]
y = len(alist) a=[254,5464,52,4574,34523,86,9]
for i in range(0,y-1): b = len(a)
for j in range(0,y-1): for i in range(0,b-1):
if alist[j]>alist[j+1]: for j in range(0,b-1):
alist[j],alist[j+1]=alist[j+1],alist[j] if a[j]>a[j+1]:
print(alist) a[j],a[j+1]=a[j+1],a[j]
\ No newline at end of file print(a)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment