‘Hello, World ‘ Simplified: Only 24 Lines of Python

h = [
    lambda a, b, c, d: 0,
    lambda a: 0,
    lambda a, b, c, d, e, f, g, h: 0,
    lambda a, b, c, d, e, f, g, h: 0,
    lambda a, b, c, d, e, f, g, h, i, j, k: 0,
    None,
    lambda a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, x, t: 0,
    lambda a, b, c, d, e, f, g, h, i, j, k, l: 0,
    lambda a, b, c, d, e, f, g, h, i, j, k, l, m, n, o: 0,
    lambda a, b, c, d, e, f, g, h, i: 0,lambda a: 0
]
b = 100
for i in h:
    if i is None:
        print(" ",end="")
        b-=1
        continue
    try:
        i()
    except Exception as exc:
        print(chr(int(str(exc).split(" ")[2])+b),end="")

Why?
Because I can.
If you think this is cool (or fascinatingly horrible), then you should check out a competition I am running in the vein of the IOCCC for Python.

Read More

Leave a Comment