(length, align)
return 0 if length % align == 0 else (align - (length % align))
Calculates the number of spaces to append to reach the next alignment.
        The next alignment point is given by "x * align >= length".
Calculates the number of spaces to append to reach the next alignment.
        The next alignment point is given by "x * align >= length".
Calculates the number of spaces to append to reach the next alignment . The next alignment point is given by x * align > = length .
def calculate_padding_to_align(length, align):
    ''' Calculates the number of spaces to append to reach the next alignment.
        The next alignment point is given by "x * align >= length".
    '''
    return 0 if length % align == 0 else (align - (length % align))
def calculate_padding_to_align ( length , align ) : return 0 if length % align == 0 else ( align - ( length % align ) )