What does Bin do in python?

+4 votes
asked Jul 25 by Adrian (250 points)

1 Answer

0 votes
answered Jul 25 by xDELLx (3,580 points)

One quick way to check what built-in function offered by python does , is :


So , now to check what bin does ,type help(bin) & I got the result below.


Help on built-in function bin in module __builtin__:

    bin(number) -> string
    Return the binary representation of an integer or long integer.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.