<doocs>2221.Find Triangular Sum of an Array_1.py
def triangularSum( nums: List[int]) -> int:
    n = len(nums)
    for i in range(n, 0, -1):
        for j in range(i - 1):
            nums[j] = (nums[j] + nums[j + 1]) % 10
    return nums[0]
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_4 = len ( var_0 )
    for var_8 in range ( var_4 , 0 , - 1 ) :
        for var_9 in range ( var_8 - 1 ) :
            var_0 [ var_9 ] = ( var_0 [ var_9 ] + var_0 [ var_9 + 1 ] ) % 10
    return var_0 [ 0 ]
