ascii to binary python 2.7 code code example Example: python binary to ascii import binascii bin(int(binascii.hexlify('hello'), 16))