Contact: aviboots(AT)netvision.net.il
39,895 questions
51,826 answers
573 users
print("int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}".format(58)) ''' run: int: 58; hex: 3a; oct: 72; bin: 111010 '''
print("int: {0:d}; hex: {0:#x}; oct: {0:#o}; bin: {0:#b}".format(58)) ''' run: int: 58; hex: 0x3a; oct: 0o72; bin: 0b111010 '''