# satwikkansal/wtfpython

What the f*ck Python? 😱

Repository: https://github.com/satwikkansal/wtfpython
Canonical: https://ross.abutalabs.com/products/wtfpython
Language: Python
License: WTFPL
License Family: permissive
Topics: python, wats, snippets, wtf, gotchas, documentation, pitfalls, interview-questions, python-interview-questions
Last push: 2026-01-13T19:49:12+00:00

## Health v2 (maintenance only)
Score: 51/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 62, release rhythm 8, longevity 100
- inputs: {"age_days": 3292, "days_push": 232, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 37065, forks 2665 (observed 2026-08-28T04:12:01.302334+00:00)

## What it is
A curated collection of surprising, counter-intuitive Python code snippets with explanations of what happens under the hood. It is available as a README, an interactive website, and a Colab notebook, with multiple community translations.

## Use cases
- learn python language internals through tricky examples
- prepare for python interview questions
- understand surprising python behaviors and gotchas
- test my python knowledge with tricky snippets
- find explanations for confusing python outputs

## When to choose
- you want to deepen your understanding of Python's quirks and internals
- you are preparing for Python interviews and want tricky questions
- you enjoy learning through short, surprising code examples

## When to avoid
- you need a structured beginner tutorial or reference manual
- you want runnable production code rather than illustrative snippets

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: programming-languages, tutorials, education
- platform: python, cross-platform
- tags: python-gotchas, snippets, interview-preparation, language-internals, wats

## Member repositories
- satwikkansal/wtfpython (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:01.302334+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:25:41.100142+00:00, confidence not recorded.
  - readme: https://github.com/satwikkansal/wtfpython (fetched 2026-08-28T04:12:01.302334+00:00, sha a25cc82689c4)
  - registry_pypi: https://pypi.org/pypi/wtfpython/json (fetched 2026-08-29T07:47:18.779463+00:00, sha 8f99f17fafb1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
