The Python problems beginners really meet: what each one means, why it happens and how to fix it. Every example was run, and every message is copied from the real output.
What "learning Python" really means, what you can build after one hour, one month and three months, a week-by-week plan with one session a week, and what speeds you up or slows you down.
Why Python prints 0.30000000000000004 for 0.1 + 0.2, why 0.1 + 0.2 == 0.3 is False, and the three fixes: round for display, math.isclose() instead of ==, and Decimal for money. With code you can run.
What Python's IndentationError: expected an indented block (after 'if', 'for' or a function definition) means, how to fix it, plus unexpected indent, unindent does not match and TabError. With code you can run.
Why Python says unsupported operand type(s) for -, +, / or //: 'int' and 'str' (or 'str' and 'int'), why input() always gives you text, and how to fix it with int(). With code you can run.
Error explained · · 5 min read
1 beginner error a week
One common error, what it means and how to fix it, in a short email. Free, and you can unsubscribe in any email.
Get stuck on an error like these?
Twenty minutes with the AI tutor, right in your browser. It reads your real code and output, and hints instead of handing you the answer.