In #Python return a list of all 8 digit binary numbers:from sympy.utilities.iterables import ibinlist(ibin(8,'all',str=True))