Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Do not repeat yourself solution in Clear category for Solution for Anything by Borim7
class Trick:
def __eq__(self, bla):
return True
__lt__ = __eq__
__gt__ = __eq__
__ne__ = __eq__
__le__ = __eq__
__ge__ = __eq__
def checkio(anything):
return Trick()
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 :(')
April 26, 2015
Comments: