a = [1,1,4,5,1,4]
condition = 0
while condition < len(a)-1:
if a[condition] > a[condition+1]:
a[condition],a[condition+1]=a[condition+1],a[condition]
condition=0
else:
condition+=1
print(a)
To embed this project on your website, copy the following code and paste it into your website's HTML: