We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

42 (klk bb)

From Esolang
Jump to navigation Jump to search

42 (klk bb) is an esolang with only two possible commands. Its main purpose is to output either 42 or 0.

The language is intentionally very simple. The . command outputs the Answer to the Ultimate Question of Life, the Universe, and Everything: 42. Any other code outputs 0.

All code is considered to be a single command.

Command Python equivalent
. print(42)
Anything else print(0)

Examples

Quine

0

Interpreter

Python 3 interpreter

print(42 * (input() == "."))