Python Compiler : Python

#Use "o" to convert the number into octal format: text = "The octal version of {0} is {0:o}" print(text.format(9))