Question: In Python - For these functions do not use built functions such as hex() and bin() to solve the problem intToBinary ( int ) :
In Python - For these functions do not use built functions such as hex() and bin() to solve the problem intToBinary ( int ) : String takes a int as parameter and returns 16 bit string representation of that integer in binary. Your function only needs to work for integers in the range 0 - 65535 Example: intToBinary(213) returns 0000000011010101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
