value = 60
b1 = bin(value) #0b111100
o1 = oct(value) #0o74
h1 = hex(value) #0x3c
format
함수 이용하기b2 = format(value, '#b') #0b111100
o2 = format(value, '#o') #0o74
h2 = format(value, '#x') #0x3c
format
함수 # 없이 이용하기b3 = format(value, 'b') #111100
o3 = format(value, 'o') #74
h3 = format(value, 'x') #3c