In computer programming, a quine is a program that outputs its own code.
This brain teaser concerns an extremely basic programming language. The code and output are sequences of just two symbols, ⚫ and 🔴. In the code:
This example is interactive. Click the code symbols to toggle between ⚫ and 🔴.
Find a quine, i.e., code that is identical to the output.
This brain teaser was inspired by Russ Cox's fascinating article Zip Files All The Way Down.