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
Ammar -
Super Kai (Kazuya Ito) -
Makram El Timani -
Yassine Sallami -
Top comments (0)