This video explains how to generate all the combinations of an n digit binary value using itertools. Watch till the end to understand how to very easily convert a list of tuples into a tabular structure!
Follow PyBear on FACEBOOK,
https://www.facebook.com/pybear881/
If you would like to support the channel by buying me a coffee, many thanks
https://www.buymeacoffee.com/zubair881a6