How To Print A Number In Octal Form In Python

[Solved] How To Print A Number In Octal Form In Python | Swift - Code Explorer | yomemimo.com
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

Answers related to how to print a number in octal form in python

Code Explorer Popular Question For Swift