Commit 3cdc7b0e by BellCodeEditor

save project

parent 911f7c5b
Showing with 8 additions and 0 deletions
alist=[20,17,9,13,8,6]
n=len(alist)
for j in range(n-1):
for i in range(n-1):
if alist[i]>alist[i+1]:
alist[i],alist[i+1]=alist[i+1],alist[i]
print(alist)
\ 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