Learn Before
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
References
Tags
Python Programming Language
Data Science
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
References
Tags
Python Programming Language
Data Science