# Can I write fun / esoteric python code here?

**URL:** <https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583>\
**Category:** Discourse Feedback\
**Tags:** help\
**Created:** [March 26, 2024, 9:43pm UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583 "2024-03-26T21:43:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marian](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@marian](https://discuss.python.org/u/marian)\
**Post date:** [March 26, 2024, 9:43pm UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/1 "2024-03-26T21:43:22Z")

</div>

Hello,  
just asking if I can post here (probably in Help category) some python code that is funny / convoluted / obfuscated or esoteric… (various adjectives can be given). Something like easter-eggs.

I am lacking this kind of section in this forum…  
But I think it can be quite educative.

(Of course unless the code is malicious, but I don’t mean this kind of stuff.)

M.

---

<div class="post-metadata">

**Author:** ![FelixFourcolor](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/felixfourcolor/32/13104_2.png) [@FelixFourcolor](https://discuss.python.org/u/FelixFourcolor)\
**Post date:** [March 26, 2024, 10:39pm UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/2 "2024-03-26T22:39:34Z")

</div>

I don’t know what category would be appropriate, but (until the mods intervene) go for it, I want to see them.

By the way since you like easter eggs check this out [GitHub - OrkoHunter/python-easter-eggs: Curated list of all the easter eggs and hidden jokes in Python](https://github.com/OrkoHunter/python-easter-eggs)

---

<div class="post-metadata">

**Author:** ![pf\_moore](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pf_moore/32/35_2.png) [@pf\_moore](https://discuss.python.org/u/pf_moore)\
**Post date:** [March 27, 2024, 12:06am UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/3 "2024-03-27T00:06:22Z")

</div>

The [Python help](https://discuss.python.org/c/users/7) topic is probably the best place.

---

<div class="post-metadata">

**Author:** ![CAM-Gerlach](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cam-gerlach/32/3688_2.png) [@CAM-Gerlach](https://discuss.python.org/u/CAM-Gerlach)\
**Post date:** [March 27, 2024, 5:32am UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/4 "2024-03-27T05:32:24Z")

</div>

Yes, as Paul stated #Python Help (`#users`) is currently our catch-all place for such things, absent a proper #general category (as I’ve advocated in the past, but that’s a separate discussion). I’m not sure how much interest you’ll get, but it can’t hurt to try, I suppose.

---

<div class="post-metadata">

**Author:** ![marian](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@marian](https://discuss.python.org/u/marian)\
**Post date:** [March 27, 2024, 12:07pm UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/5 "2024-03-27T12:07:50Z")

</div>

it’s out 🙂

> [@Let's type type type ... yes it's a valid python code slight\_smile](https://discuss.python.org/t/lets-type-type-type-yes-its-a-valid-python-code/49639):
>
> Did you know that checking for a type can actually be quite funny? Because type(type) returns just ‘type class’, which can be chained further like: type(type)('abc') which returns final ‘str class’ of abc string. But that’s not all, there are other ‘builtin’ things that when called in type() return ‘type class’. For example type(int) ; type(set) and even type(filter) ; type(zip) return just ‘type class’, which can be similarly chained like: type(filter)('abc') which returns final ‘st…

---

<div class="post-metadata">

**Author:** ![Resuscitating](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/resuscitating/32/8782_2.png) [@Resuscitating](https://discuss.python.org/u/Resuscitating)\
**Post date:** [March 28, 2024, 1:56pm UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/6 "2024-03-28T13:56:22Z")

</div>

I don’t know about doing that on the forums here, but if you have Discord, there’s a Python Discord server (unofficial) that has a channel for esoteric Python. You might enjoy checking that out.

---

<div class="post-metadata">

**Author:** ![marian](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@marian](https://discuss.python.org/u/marian)\
**Post date:** [March 29, 2024, 7:44am UTC](https://discuss.python.org/t/can-i-write-fun-esoteric-python-code-here/49583/7 "2024-03-29T07:44:39Z")

</div>

yes, I know of it (on Discord), but it’s more like an instant chat… and I don’t like the ‘fleeting stream’ concept, it’s hard to search within.

Forums are better 😉 . -thanks for this one!

(I know there are even such like: Quora; [CodeGolf](https://codegolf.stackexchange.com/) on StackExchange; and many more articles/blogs on internet;

and Curated list of [Easter Eggs](https://github.com/OrkoHunter/python-easter-eggs) (mentioned already);  
and Curated list of [Python oddities](https://github.com/satwikkansal/wtfpython) (this should be the more decent name)

and interestingly even official Python documentation / website has some examples! Check out: [Is it possible to write obfuscated one-liners in Python?](https://docs.python.org/3/faq/programming.html#is-it-possible-to-write-obfuscated-one-liners-in-python) )

M.
