Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Classes are objects too. solution in Uncategorized category for Solution for Anything by lrekucki
# migrated from python 2.7
whatever = lambda *a, **b: True
Silly = type("Silly", (object,), dict(("__{}__".format(k), whatever) for k in
("lt", "le", "gt", "ge", "eq", "ne")
))
checkio = lambda *a: Silly()
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 :(')
Nov. 20, 2012
Comments: