How-to articles, tricks, and solutions about STRING.FORMAT
Python int to binary string?
You can use the built-in bin() function to convert an integer to a binary string in Python.