You don't need to. It will happen automagically.
If you write hex code withthat's exactly equivalent toor octal codePutting it all together
If you write hex code with
Code:
x=0x4f
Code:
x=79
Code:
x=0o117
Code:
#!/usr/bin/python3x=0x4Fy=79z=0o117print ("X=:", x)print ("Y=:", y)print ("Z=:", z)
Statistics: Posted by DougieLawson — Mon Apr 29, 2024 6:18 pm