fork download
  1. zlist=[x for x in range(100000, 1000000)]
  2. alist=[]
  3. for z in zlist:
  4. if z%72==0:
  5. z=str(z)
  6. alist.append(z)
  7. list=[x for x in alist if "1" in x]
  8. list=[x for x in list if "2" in x]
  9. list=[x for x in list if "3" not in x]
  10. list=[x for x in list if "4" not in x]
  11. list=[x for x in list if "5" not in x]
  12. list=[x for x in list if "6" not in x]
  13. list=[x for x in list if "7" not in x]
  14. list=[x for x in list if "8" not in x]
  15. list=[x for x in list if "9" not in x]
  16. list=[x for x in list if "0" not in x]
  17. for result in list:
  18. print(result)
  19.  
Success #stdin #stdout 0.4s 8688KB
stdin
Standard input is empty
stdout
122112
212112
221112