a=list(input("Enter the elements of list:"))
for i in range(len(a)):
for j in range(1,len(a)):
if a[j-1]>a[j]:
a[j-1], a[j]=a[j],a[j-1]
print("your sorted list is:\n",a)
a=list(input("Enter the elements of list:"))
for i in range(len(a)):
for j in range(1,len(a)):
if a[j-1]>a[j]:
a[j-1], a[j]=a[j],a[j-1]
print("your sorted list is:\n",a)
For further actions, you may consider blocking this person and/or reporting abuse
Faceplugin -
Celeste van der Watt -
Ben Link -
Stefan Alfbo -
Top comments (0)