Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Inspired by BrainF**k solution in Uncategorized category for The Best Number Ever by HonzaKral
OPS = {
'0': lambda _: 0,
'+': lambda buf: buf + 1,
'<': lambda buf: buf * 10
}
def bf(it):
buf = None
for i in it:
buf = OPS[i](buf)
return buf
def checkio():
'And the best number ever is...'
return bf("0+++++++<+++")
March 9, 2013
Comments: