def name(params):
    K = params
    J = 0
    while J < len(K)-1:
        if K[J] > K[J+1]:
            K[J],K[J+1] = K[J+1],K[J] 
            J=0
        else:
            J+=1
    return K
        

G = [1,1,4,5,1,4]


print(name([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: