t520.py 277 B

123456789101112131415
  1. x = any([1,2])
  2. print x, type(x)
  3. y = all([1,2])
  4. print x, type(x)
  5. z = isinstance(5, int)
  6. print z, type(z)
  7. print hash(True), type(hash(True))
  8. print hash(None), type(hash(None))
  9. print hash("hello") > 0, type(hash("hello"))
  10. a = hasattr("hello", "not_a_method")
  11. print a, type(a)