def getWidthHex(number, width):
 return ('0000%s' % hex(number)[2:])[(- width):]

def getWidthHex ( number , width ) : return ( '0000%s' % hex ( number ) [ 2 : ] ) [ ( - width ) : ]
get the first width hexadecimal digits .