Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Solution for Anything by mihaillebedevdev
def checkio(anything):
class new_type(object):
def __ret_true__(self ,other): return True
__eq__ = __ne__ = __lt__ = __gt__ = __le__ = __ge__ = __ret_true__
return new_type()
if __name__ == '__main__':
import re
import math
assert checkio({}) != [], 'You'
assert checkio('Hello') < 'World', 'will'
assert checkio(80) > 81, 'never'
assert checkio(re) >= re, 'make'
assert checkio(re) <= math, 'this'
assert checkio(5) == ord, ':)'
print('NO WAY :(')
May 18, 2015