def Sorts(LIST):
    TSIL = LIST
    K = 0
    L = 0
    while K < len(TSIL)-1:
        if TSIL[K] > TSIL[K+1]:
            TSIL[K],TSIL[K+1] = TSIL[K+1],TSIL[K]
            K = 0
        else:
            K += 1
    return TSIL
print(Sorts([1,1,4,5,1,4]))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: