lambda x:“{0:0>{1}}”.format(bin(ord(x)), 16)
То же, но понятнее:
lambda x: bin(ord(x)).rjust(16, ‘0’)