I have a hex value that I\'m grabbing from a text file, then I\'m passing it to a2b_hex to convert it to the proper binary representation. Here is what I have:
Are you sure the file doesn't have something extra in it? Whitespace, for instance?
Try k1.strip()
k1.strip()