Python oct() Function
Definition and Usage
The oct()
function converts an integer into an octal string.
Octal strings in Python are prefixed with 0o
.
Syntax
oct(int)
Parameter Values
Parameter | Description |
---|---|
int | An Integer Number |