Pregunta de entrevista de Prudential

How to encode a binary address in python.