TGViewer
Artem Ryblov’s Data Science Weekly Artem Ryblov’s Data Science Weekly @data_science_weekly · 685 subscribers
Post #108 510
What the f*ck Python! 😱

Python, being a beautifully designed high-level and interpreter-based programming language, provides us with many features for the programmer's comfort. But sometimes, the outcomes of a Python snippet may not seem obvious at first sight.

Here's a fun project attempting to explain what exactly is happening under the hood for some counter-intuitive snippets and lesser-known features in Python.

While some of the examples you see below may not be WTFs in the truest sense, but they'll reveal some of the interesting parts of Python that you might be unaware of. I find it a nice way to learn the internals of a programming language, and I believe that you'll find it interesting too!

If you're an experienced Python programmer, you can take it as a challenge to get most of them right in the first attempt. You may have already experienced some of them before, and I might be able to revive sweet old memories of yours! 😅

Links:
- Interactive Website
- Interactive Notebook
- GitHub Version:
- ENG
- RUS

Navigational hashtags: #armknowledgesharing #armbooks
General hashtags: #python #programming #coding

@data_science_weekly
  • 👍 4
More from @data_science_weekly
  1. Sep 27, 2026How to Make Learning as Addictive as Social Media by Luis von Ahn, TED2023 When building D…
  2. Sep 20, 2026Reliable Machine Learning: Applying SRE Principles to ML in Production by Cathy Chen, Nial…
  3. Sep 13, 2026A Short Note on P-Value Hacking by Nassim Nicholas Taleb The paper works out the exact pro…
  4. Sep 6, 2026SQLBolt — Learn SQL with simple, interactive exercises Every lesson runs a database in the…
  5. Aug 16, 2026Machine Learning by Neetcode Solve ML problems from scratch, from gradient descent to a wo…
  6. Aug 9, 2026CS 224V Conversational Virtual Assistants with Deep Learning by Stanford University Genera…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →