Contact: aviboots(AT)netvision.net.il
39,892 questions
51,823 answers
573 users
print(hex(255)) print(hex(-3)) ''' run: 0xff -0x3 '''
print(format(255, '#x')) print(format(255, 'X')) ''' run: 0xff FF '''
hx = hex(255) print(hx) hx += 'f' print(hx) ''' run: 0xff 0xfff '''