Commit 35ecb66e by BellCodeEditor

auto save

parent 9aed992a
Showing with 17 additions and 2 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91]
n = len(alist)
for i in range(0,n-1):
for j in range(0,n-i-1):
if alist[j]>alist[j+1]:
alist[j],alist[j+1]=alist[j+1],alist[j]
print(alist)
for i in range(0,)
# j 0 1 88
# 1 2 75
# 2 3 82 72
# 3 4 90 72
# 4 5 85 72
# 5 6 78 72
# 6 7 91
# 72
\ 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