Python bin() Function
Definition and Usage
The bin()
function returns the binary version of a specified integer.
The result will always start with the prefix 0b
.
Syntax
bin(n)
Parameter Values
Parameter | Description |
---|---|
n | Required. An integer |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.