Wtfiswronghere
A collection of simple errors that beginners are likely to hit when they start writing Python.
Install / Use
/learn @qxf2/WtfiswronghereREADME
Improve your Python by fixing errors
We present small code samples that have errors in them. Initially, there is only one error and it is relatively easy to spot. As we move up challenges, there are multiple errors and subtle bugs.
Why do this at all?
By working through these examples, we hope you get better at:
- reading errors
- debugging
- reading and editing other people's code
- Googling for specific issues
- solving errors on your own
Motivation for creating this repository
We noticed that people learning new programming languages lack some foundational skills like the ability to read errors, the knowledge to self-correct their own mistakes, the skill to limit their attention to only the relevant lines of code, etc. This repository is a collection of simple errors that beginners are likely to hit when they start to write Python code. Our idea is to present exercises in which beginners can experience errors and try to solve them on their own.
This repository has been created and maintained by Qxf2 Services. Qxf2 provides QA consultancy services for startups. If you found this repository useful, please let us know by giving us a star on GitHub.
How to use this repository
We suggest you do the following
-
Fork this repository
-
In your terminal prompt (git bash, command prompt, etc.), navigate to each challenge directory (e.g.:
01_challenge) -
Run the one Python script in the challenge directory (
python 01_challenge.py) -
It should throw an error that reads similar to the
.pngin the challenge directory -
Fix the error and rerun
-
If all goes good, you should see the output of running fizz buzz
-
Once you fix the issue, update the readme file in the challenge directory (
01_readme.md) with:a. what part of the error message gave you a clue
b. how you set about solving the issue (e.g.: I Googled
XXXXthat didn't help me narrow down my problem. After that, I tried GooglingPython XXXXand finally ended up Googling forPython XXXX error. Then I found a page that looked promising becauseYYYY. Much thanks to reddit user /u/danielsgriffin for this tip!)c. summarize what you learned.
-
Don't forget to commit your fixed code and updated readme
-
Pro tip: Once you are setup, try your best to timebox each exercise to no more than 10-minutes. We recommend this tip for even rank beginners who know nearly nothing about Python!
NOTE: To get the most out of these exercises, we think beginners should use an IDE (e.g.: Visual Studio Code), use git and use one git branch per challenge. These are peripheral habits to the main exercises but they will go a long way in making you more comfortable in working with code.
Related Skills
claude-opus-4-5-migration
84.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
docs-writer
99.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
341.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.1k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
