Repository navigation
The tutorials check real learning, and give much more practice.
- A task checks the idea, not only the text. Python reads the student's program and says what it really uses (a loop, a function,
+=...); words in quotes and comments never count. Printing the expected text no longer passes 55 tasks that teach something else; the message says what is missing ("this task asks you to use a for loop"). The build tries that shortcut on every task and fails when it passes. - "Think first" is a real question in 172 steps: three possible results, one right, the other two mistakes a beginner really makes (
2 + 3shown as text, the quotes printed too, a number one off). It never blocks. - A question on the lesson before opens every lesson from the second one: "Remember?".
- 11 "find the mistake" steps in lessons 3 to 20: mismatched quotes,
xfor times, text plus a number, 4 times 2 is 44,=in an if, a missing colon, a line not pushed in,addon a list, changing a letter of a text, a missing key, a function withoutreturn. - 17 more challenges, in lessons 21 to 40 (function options, scope, recursion, comprehensions, modules, statistics, dates, files, errors, JSON, regular expressions, classes, inheritance, special methods, dataclasses, generators, decorators). The course has 349 steps.
- No more "Show a solution": the student works the answer out, with the hint as help. The solutions are not even in the files the page loads.
- Lessons read and lessons solved are counted apart, and a lesson shows how many of its tasks are solved.
- On a phone, a Check button sits next to Run while a task is open.
- Plain sentences for four more errors, in three languages:
JSONDecodeError,PatternError(the regular expression is broken),IsADirectoryErrorandUnicodeDecodeError. - Screen readers hear what the program printed, and each problem, when a run ends.
- Hints point the way, never the line to type: 170 hints held a line of the solution and were rewritten. The build now fails when a hint holds a line of the solution, or when copying the step's program already solves its task (8 tasks fixed, 2 had a hidden requirement).
- An answer that is almost right says what differs: capital letters, spaces, punctuation, quotes shown, 4.0 instead of 4, lines in another order. After two wrong checks the page offers the hint and the example, never the answer.
- Think first explains a wrong pick: the wrong answers come from real beginner mistakes (the quotes shown, the name of a box instead of its value, + adding a space...) and the page says what each one gets wrong.
- Remember? asks a second question from four lessons back, from lesson 6.
- 9 more challenges (lessons 41 to 49): every lesson from 1 to 49 ends with a program written from an empty page. The course has 358 steps.
- A task that asks questions says which answers the check will type.
- Fixed: a check of a program with a loop that never ends stayed on "Checking..." for ever; now it stops after 8 seconds, with a Stop button and a sentence about while. Run waits while a check uses Python. On a phone the verdict scrolls into view, with a way back to the editor.
Note: in lessons 3 to 20 a new step was added before the challenge, so a challenge solved in 1.2.0 may show as not solved.