You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add 5 new exercises with solutions, runner, and CI; fix tutorial links
- Replace generic /learn/ links in all existing exercises and
solutions with the matching specific tutorial URL.
- Add exercises 06-10: dictionaries, conditionals, files, errors /
try-except, and classes — each with a self-check and a matching
solution.
- Add run_all.py: a small runner that executes every exercise and
reports pass / fail / skip (skips exercises that still contain
TODO placeholders).
- Add .github/workflows/exercises.yml: runs every solutions/*.py
file on Python 3.11 for every push and pull request.
- Update the README to list all 10 exercises and document the
runner and CI.
Copy file name to clipboardExpand all lines: README.md
+30-10Lines changed: 30 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,37 +12,57 @@ These exercises mirror the learning track on **[pythonbeginner.help](https://pyt
12
12
13
13
## How to use
14
14
15
-
1. Make sure you have [Python installed](https://pythonbeginner.help/learn/) (3.8+).
16
-
2. Open an exercise in the [`exercises/`](exercises) folder and complete the `TODO`.
15
+
1. Make sure you have [Python installed](https://pythonbeginner.help/learn/how-to-install-python-on-windows-macos-and-linux/) (3.8+).
16
+
2. Open an exercise in the [`exercises/`](exercises) folder and complete the `TODO`s.
17
17
3. Run it — each file checks your answer with `assert` and prints ✅ when it passes:
18
18
19
19
```bash
20
20
python exercises/01_variables.py
21
21
```
22
22
23
23
4. Stuck? Compare with the matching file in [`solutions/`](solutions).
24
+
5. Run every exercise at once with the bundled runner:
25
+
26
+
```bash
27
+
python run_all.py # stop on first failure
28
+
python run_all.py --keep # run them all, report each result
29
+
```
30
+
31
+
The runner also reports any unfinished exercise (one that still contains `...` TODO placeholders) as `SKIP` so you can see at a glance what's left to do.
Every push and pull request runs all of the `solutions/*.py` files through GitHub Actions on Python 3.11, so the answers are always verified to work. See [`.github/workflows/exercises.yml`](.github/workflows/exercises.yml).
0 commit comments