bin() function in Python
Introduction
The bin() function converts and returns the binary equivalent string of a given integer. If the parameter isn't an integer, it has to implement __index__() method to return an integer.
The syntax of bin() method is:
bin(num)
where num i...
blog.ashutoshkrris.in2 min read