fork download
  1.  
  2. def is_even_positive_int(x):
  3. return type(x) is int and x > 0 and x % 2 == 0
  4.  
  5. print(is_even_positive_int(123456))
  6. print(is_even_positive_int("yikes"))
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
True
False