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

Updated 2021-03-21

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science

Related