Converting between binary and decimal in python
Use the builtin bin() function to convert integers to binary. Use int(binary_repr, 2) to convert back.
Use the builtin bin() function to convert integers to binary. Use int(binary_repr, 2) to convert back.