fork download
  1. # your code goes here
  2. def is_int(x):
  3. return x == int( x )
  4.  
  5. print(is_int(1.1))
  6. print(is_int(1.0))
  7. print(is_int(1))
Success #stdin #stdout 0.04s 9440KB
stdin
Standard input is empty
stdout
False
True
True