Commit 300d22fc by BellCodeEditor

save project

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