Commit ecd6114d by BellCodeEditor

auto save

parent eae6c7cc
Showing with 20 additions and 5 deletions
list1 = []
for a in range(0, 1000):
for b in range(0, 1000):
list1.insert(0, 0)
\ No newline at end of file
a=[2,333,1,15,1,759,12,54,123]
for i in range(0,len(a)-1):
if a[i]>a[i+1]:
a[i],a[i+1]=a[i+1],a[i]
print(a)
# # a=[3,1]
# # if a[0]>a[1]:
# # a[0],a[1]=a[1],a[0]
# # print(a)
# a=1
# b='2'
# c=(1,)
# print(type(a))
# print(type(b))
# print(type(c))
\ 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