Is there any method or something cool which store array of ‘0’ and use only 1 bit for 1 ‘0’ like bitset in c++…??
There is nothing in the standard library for that, maybe there’s a package on PyPI. I also imagine it wouldn’t be too complicated to build your own package.
Here’s a little pure Python code to get you started.