fork download
  1. def allDigiEven(number):
  2. return all(int(i)%2==0 for i in str(number))
  3.  
  4. def pt(a,b):
  5. ans=[i for i in range(a,b+1) if allDigiEven(i)]
  6. print(ans)
  7.  
  8. pt(100,400)
Success #stdin #stdout 0.02s 9136KB
stdin
Standard input is empty
stdout
[200, 202, 204, 206, 208, 220, 222, 224, 226, 228, 240, 242, 244, 246, 248, 260, 262, 264, 266, 268, 280, 282, 284, 286, 288, 400]