Contact: aviboots(AT)netvision.net.il
39,885 questions
51,811 answers
573 users
s = "1A3" b = bin(int(s, 16)).zfill(8) print(b) ''' run: 0b110100011 '''
s = "1A3" b = "{0:08b}".format(int(s, 16)) print(b) ''' run: 110100011 '''