Concept icon
Concept

bin()

The bin() function converts an integer to binary string. The binary string always has a prefix 0b.

x = bin(100) print(x) #it prints 0b1100100

0

1

Concept icon
Updated 2021-03-21

Contributors are:

Who are from:

References


Tags

Python Programming Language

Data Science

Related
Related