Contact: aviboots(AT)netvision.net.il
31,051 questions
40,769 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 '''