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