The oct() function converts an integer number to an octal string prefixed with "0o".  The Octal notation is representation of integers in base 8, the notation uses digits from 0 to 7.

Syntax:
oct(integer)
copy
ExampleEdit & Run
print( oct(5) )
print( oct(8) )
print( oct(10) )
print( oct(50) )
print( oct(64) )
copy
Output:
0o5 0o10 0o12 0o62 0o100 [Finished in 0.010627184994518757s]