Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

What does Bin do in python?

+4 votes
asked Jul 25, 2020 by Adrian (260 points)

1 Answer

0 votes
answered Jul 25, 2020 by xDELLx (10,500 points)

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

help(<insert_function_name>)

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

>>>help(bin)

Help on built-in function bin in module __builtin__:

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

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.
...