A curated list of Easter eggs in every language you can think of!
-
The Zen of Python
import this
It will print the Zen of Python.
-
XKCD Comics
import antigravity
It will open your default browser, and open a classic XKCD comic.
-
Hello World
import __hello__
It will print
Hello World!
-
April Fool
from __future__ import barry_as_FLUFL 1<>2
This April Fool joke was posted about Barry Warsaw.
-
C-Style braces instead of indentation
from __future__ import braces
This will give the following Output
File "<stdin>", line 1 SyntaxError: not a chance
-
Easter Egg in net package
In
src/net/net.go
, we find this variable:// aLongTimeAgo is a non-zero time, far in the past, used for // immediate cancelation of dials. aLongTimeAgo = time.Unix(233431200, 0)
This Unix timestamp converts to May 25, 1977 @ 6pm. The day Star Wars opened in theaters -- hence "a long time ago." Cute!
-
Mysterious super cow power
$ apt-get moo (__) (oo) /------\/ / | || * /\---/\ ~~ ~~ ..."Have you mooed today?"...
-
Daniel Burrows Easter Egg
$ aptitude moo There are no Easter Eggs in this program. $ aptitude -v moo There really are no Easter Eggs in this program. $ aptitude -vv moo Didn't I already tell you that there are no Easter Eggs in this program? $ aptitude -vvv moo Stop it! $ aptitude -vvvv moo Okay, okay, if I give you an Easter Egg, will you go away? $ aptitude -vvvvv moo All right, you win. /----\ -------/ \ / \ / | -----------------/ --------\ ---------------------------------------------- $ aptitude -vvvvvv moo What is it? It's an elephant being eaten by a snake, of course.
An Easter egg is a hidden message or a joke particularly found in a computer program or a video game or in this case, a programming language!
This list is a curated list of all the easter eggs in every programming language in the world from C# to Brainf**k.
It's simple! You pull a request mentioning a little bit about your Easter Egg and 🎉! It's done!
To the extent possible under law, Dhruv Apte has waived all copyright and related or neighboring rights to this work.