<doocs>0066.Plus One_1.py
def plusOne( digits: List[int]) -> List[int]:
    n = len(digits)
    for i in range(n - 1, -1, -1):
        digits[i] += 1
        digits[i] %= 10
        if digits[i] != 0:
            return digits
    return [1] + digits
def sample_funcname ( var_0 : List [ int ] ) -> List [ int ] :
    var_4 = len ( var_0 )
    for var_7 in range ( var_4 - 1 , - 1 , - 1 ) :
        var_0 [ var_7 ] += 1
        var_0 [ var_7 ] %= 10
        if var_0 [ var_7 ] != 0 :
            return var_0
    return [ 1 ] + var_0
