Commit 1edac552 by BellCodeEditor

save project

parent 7b3c2e7f
Showing with 12 additions and 2 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91]
\ No newline at end of file
import time
start = time.time()
alist = [88, 75, 72, 82, 90, 85, 78, 91]
n = len(alist)
for i in range(0,n-1):
for z in range(0,n-1):
if alist[z] > alist[z+1]:
alist[z],alist[z+1] = alist[z+1],alist[z]
print(alist)
over = time.time()
print(over-start)
\ 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