Partial function - Hextobin

Question

Hexadecimal to Binary - using a partial function.

Solution

from functools import partial

hexbin = partial(int, base=16)
print(bin(hexbin("FFFF")))
Run this
Comments by Disqus