Commit d8e28be9 by BellCodeEditor

save project

parent 0a7b0048
Showing with 13 additions and 2 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91] list1=[1,5,12,84,152,156,13,78,6,4,7]
\ No newline at end of file def pl(lists):
list2=[]
for s in lists:
list2.append(s)
for i in range(0,len(list2)-1):
for j in range(0,len(list2)-i-1):
if list2[j] > list2[j+1]:
list2[j],list2[j+1]=list2[j+1],list2[j]
return list2
a=pl(list1)
print(a)
\ 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