Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Solution for anything Class-based. solution in Clear category for Solution for Anything by diegueus9
class Anything:
def __ne__(self, arg):
return True
def __ge__(self, arg):
return True
def __gt__(self, arg):
return True
def __eq__(self, arg):
return True
def __le__(self, arg):
return True
def __lt__(self, arg):
return True
def __call__(self, arg):
return self
checkio = Anything()
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 :(')
April 28, 2015
Comments: