Commit d82e556e by BellCodeEditor

save project

parent 0a7b0048
Showing with 8 additions and 2 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91] alist = [55,23,45,65,878,465,2498,576,875465,789465,4897,648974,63579864,687,654,986456,7468,74,64,9864,688,7456,874,6,498,4,67,435,7,9,4,56,7457,64,89,49,45,6,74,689,88, 75, 72, 82, 90, 85, 78, 91]
\ No newline at end of file n = len(alist)
for i in range(0,n-1):
for j in range(0,n-1):
if alist[j] > alist[j + 1]:
alist[j],alist[j + 1] = alist[j + 1],alist[j]
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