Why does 0.1 + 0.2 not equal 0.3 in Python?
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.
Python fundamentals: variables, data types, operators, strings, and your first working scripts.
Each session is one hour with the AI tutor and uses one credit. Sign in to start.
The same three rules in every session, from the first line of code to the last.
You write all of the code. The tutor reacts to what you actually typed, line by line.
A ladder from a light nudge to the solution, and only after you have made a real attempt.
Your code runs for real. The tutor reads what the machine showed, and trusts it.
The next course of Python from Scratch, and where the other paths begin.
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.
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.
What students ask before they start The Workbench.
Not for this course. The editor in the page runs your code next to the chat. If you prefer, you can use VS Code on your own computer.
The tutor gives a ladder of hints, from a light nudge to the solution, and only after you have made a real attempt.
Yes. In the editor in the page, your project is saved on the server for this course, continues in your next session on any device, and downloads as a .zip.
Yes, for the whole path. When you have finished all 3 courses of Python from Scratch (this is Course 1), you get the Python from Scratch certificate of completion with your name: a link anyone can check, one-click LinkedIn and a PDF. Your progress towards it is on your dashboard.
No. This course starts from zero. Take the sessions in order: each one builds on the one before.
Twenty minutes with the tutor, right in your browser. No card, nothing to install.
Start the free trial