Question : how to print a number in octal form in python
Answered by : agreeable-ape-eo03cu1gsy1x
oct()
#example
print(oct(123))
#other useful functions
hex() #for hexdecimal
bin() #for binary
Source : | Last Update : Wed, 05 Oct 22
Answered by : agreeable-ape-eo03cu1gsy1x
oct()
#example
print(oct(123))
#other useful functions
hex() #for hexdecimal
bin() #for binary
Source : | Last Update : Wed, 05 Oct 22