<doocs>2161.Partition Array According to Given Pivot_1.py
def pivotArray( nums: List[int], pivot: int) -> List[int]:
    a, b, c = [], [], []
    for x in nums:
        if x < pivot:
            a.append(x)
        elif x == pivot:
            b.append(x)
        else:
            c.append(x)
    return a + b + c
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> List [ int ] :
    var_4 , var_5 , var_6 = [ ] , [ ] , [ ]
    for var_7 in var_0 :
        if var_7 < var_3 :
            var_4.append ( var_7 )
        elif var_7 == var_3 :
            var_5.append ( var_7 )
        else :
            var_6.append ( var_7 )
    return var_4 + var_5 + var_6
