Python bin() Function
Definition and Usage
The bin() function returns the binary version of the specified integer.
The result will always start with the prefix 0b.
Syntax
bin(n)
Parameter Value
Parameter | Description |
---|---|
n | Required. Integer. |
The bin() function returns the binary version of the specified integer.
The result will always start with the prefix 0b.
bin(n)
Parameter | Description |
---|---|
n | Required. Integer. |