Commit 20b4e81c by BellCodeEditor

save project

parent 0a7b0048
Showing with 8 additions and 0 deletions
alist = [20,17,9,13,8,6,3,3,3,34,24,5,5,54,5,5,45,45,44,4,454,4,55,3434,3,34,34,3,4,43,34,4,4,3,43,3,45,3,52,24,23,4,7556,687,6876,6,78,6,55,5,6,5,56,87,8]
w = len(alist)
for z in range(0, w - 1):
for n in range(0, w - 1):
if alist[n] > alist[n+1]:
alist[n], alist[n+1] = alist[n+1], alist[n]
print(alist)
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