spacepaste

  1.  
  2. def checkio(anything):
  3. """
  4. try to return anything else :)
  5. """
  6. class Checkio:
  7. def __eq__(self,other):
  8. return True
  9. def __le__(self,other):
  10. return True
  11. def __lt__(self,other):
  12. return True
  13. def __ne__(self,other):
  14. return True
  15. def __gt__(self, other):
  16. return True
  17. def __ge__(self, other):
  18. return True
  19. return Checkio()
  20. if __name__ == '__main__':
  21. import re
  22. import math
  23. assert checkio({}) != [], 'You'
  24. assert checkio('Hello') < 'World', 'will'
  25. assert checkio(80) > 81, 'never'
  26. assert checkio(re) >= re, 'make'
  27. assert checkio(re) <= math, 'this'
  28. assert checkio(5) == ord, ':)'
  29. print('NO WAY :(')
  30.