Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Happy to figure it out! solution in Clear category for Solution for Anything by PoTingKuo
def checkio(anything):
class Sol:
def __init__(self, anything):
self.anything = anything
def __lt__(self,other):
return True
def __gt__(self,other):
return True
def __eq__(self,other):
return True
def __ne__(self,other):
return True
def __le__(self,other):
return True
def __ge__(self,other):
return True
s = Sol(anything)
return s
if __name__ == '__main__':
import re, 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 :(')
June 8, 2016