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 |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.