helpers.py
def symmetric_remove(x, n):
    ''' removes n items from beginning and end '''
    odd = is_odd(n)
    half = int(n/2)
    if half > 0:
        x = x[half:-half]
    if odd:
        x = x[1:]
    return x
 removes n items from beginning and end 
removes n items from beginning and end
removes n items from beginning and end
def symmetric_remove(x, n):
    odd = is_odd(n)
    half = int(n/2)
    if half > 0:
        x = x[half:-half]
    if odd:
        x = x[1:]
    return x
def symmetric_remove ( x , n ) : odd = is_odd ( n ) half = int ( n / 2 ) if half > 0 : x = x [ half : - half ] if odd : x = x [ 1 : ] return x
removes n items from beginning and end
removes n items from beginning and end
''' removes n items from beginning and end '''
x
n