arr=[1,8,3,4,2]
length=len(arr)
for i in range(length):
for j in range(length):
if arr[j+1]>arr[j]:
temp=arr[j]
arr[j]=arr[j+1]
arr[j+1]=temp
for i in range(length):
print("%d" %arr[i], end='')
To embed this project on your website, copy the following code and paste it into your website's HTML: