arr = [5,4,10,3]

def Quicksort(arr):
    if len(arr) <= 1:
        return arr
    else:
        pivot = arr.pop()
        greather_than = []
        less_then = []
        for i in arr :
            if i>pivot:
                greather_than.append(i)
            else:
                less_then.append(i)
    return Quicksort(less_then)+[pivot]+Quicksort(greather_than)
print(Quicksort(arr))


