If you trust this link, click it to continue.
https://pythonguides.com/convert-string-of-1s-and-0s-to-binary-in-python/