n = 120 r = 29 for m in range(0, 1000): if 0 in list([int(i) for i in str(m)]): print(list([int(i) for i in str(m)]).remove(0))
for m in range(0, 1000): if '0' in str(m): print([int(i) for i in str(m) if int(i)])