<doocs>1502.Can Make Arithmetic Progression From Sequence_1.py
def canMakeArithmeticProgression( arr: List[int]) -> bool:
    arr.sort()
    for i in range(1, len(arr) - 1):
        if (arr[i] << 1) != arr[i - 1] + arr[i + 1]:
            return False
    return True
def sample_funcname ( var_0 : List [ int ] ) -> bool :
    var_0.sort ( )
    for var_8 in range ( 1 , len ( var_0 ) - 1 ) :
        if ( var_0 [ var_8 ] << 1 ) != var_0 [ var_8 - 1 ] + var_0 [ var_8 + 1 ] :
            return False
    return True
