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)