def T(x):
    for _ in range(len(x)):
        for o in range(len(x)-1):
            if x[o] > x[o+1]:
                x[o],x[o+1] = x[o+1],x[o]
    return x
def U(x):
    for n in range(len(x)):
        for o in range(len(x)-1):
            if x[n] > x[o]:
                x[n],x[o] = x[o],x[n]
    return x
print(T([1,1,4,5,1,4,1,9,1,9,8,1,0]))
print(U([1,1,4,5,1,4,1,9,1,9,8,1,0]))

Embed on website

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