📜 ⬆️ ⬇️

Snake eggs (Python easter eggs)

The other day, while studying the insides of Python, I stumbled upon the Easter egg "barry_as_FLAFL" in the __future__ module. I remembered, googled and decided to assemble a small collection of all Easter eggs and jokes I know of in Python.
Well, firstly, sin is not to bring here the well-known "Zen Python":
image

Not many people know that this can be continued by philosophical arguments on the love theme:
image

Also in Python there is a built-in HelloWorld module:
image
By the way, in Python 3.x the module is imported, but for some reason it does not output anything ...

The following egg - April Fool's joke from one of the developers:
image
That is, "! =" No longer works, but it works "<>".
')
And let's imagine for a moment that brackets (instead of indents) appear in the python "in the future" (__future__);
image

There is a similar GIL egg in Jython:
image

Well, finally, my favorite. The python has an anti-gravity mode:
import antigravity 
will show the popular xkcd comic about Python :
image

I wish you all a fun programming! Maybe you know about some more eggs?

Source: https://habr.com/ru/post/115949/


All Articles