(maxnum)
return max(1, math.ceil(math.log(maxnum, 2)))
Returns the number of bits required to represent the given (unsigned)
    integer.
Returns the number of bits required to represent the given (unsigned)
    integer.
Returns the number of bits required to represent the given ( unsigned ) integer .
def bits_required(maxnum):
    """Returns the number of bits required to represent the given (unsigned)
    integer.
    """

    return max(1, math.ceil(math.log(maxnum, 2)))
def bits_required ( maxnum ) : return max ( 1 , math . ceil ( math . log ( maxnum , 2 ) ) )