Commit 081c618c by BellCodeEditor

save project

parent fcd73ed0
Showing with 11 additions and 1 deletions
......@@ -3,7 +3,8 @@ import time
hh = time.time()
for a in range(0, 1000):
for b in range(0, 1000):
list1.insert(0, 0)
list
1.append(0)
yy = time.time()
e = yy - hh
print(e)
\ No newline at end of file
alist = [20,17,9,13,5,6]
n = len(alist)
for a in range(0,n-1):
for i in range(0,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