Futurecoder
100% free and interactive Python course for beginners
Install / Use
/learn @alexmojaki/FuturecoderREADME
This is a 100% free and interactive course for people to teach themselves programming in Python, especially complete beginners at programming. It is carefully designed to reduce frustration and guide the user while still ensuring that they learn how to solve problems. The goal is for as many people as possible to learn programming.
You can try it out here: https://futurecoder.io/
Please consider contributing or donating!
Alternatively, come have a chat on discord.
Features
For a fuller demonstration and explanation, watch this video.
<table> <tr> <td colspan="2"> The course is a fully interactive 'book' which requires the user to run code in the provided editor or shell to advance: </td> </tr> <tr> <td colspan="2">
</td>
</td>
<td>
</td>
Or in some cases solve a Parsons problem instead, where they have to put a shuffled solution in the correct order:
</td> </tr> <tr> <td>

- Highlighting the exact operation that failed, not just the line, using executing
- Tables of local variables and simple expressions evaluated by pure_eval
- Suggestions for fixes provided by DidYouMean
- Beginner friendly explanations provided by friendly-traceback (shown when hovering over the little
iicon) - Showing multiline statements in full thanks to stack_data without showing unnecessary extra lines


Several debuggers are provided, including snoop... </td> <td>
...birdseye... </td>
</tr> <tr> <td>
</td>
<td>
</td>
...and Python Tutor </td>
</tr> <tr> <td colspan="2">
</td>
Running locally
- Fork this repo,
git cloneit, and enter the top-levelfuturecoderfolder. - Install Python 3.12.1 and poetry.
- Run
poetry installto install Python dependencies. - Run
./scripts/generate.sh. This will generate various static files from Python used by the frontend and run some tests. Repeat this step whenever you change Python files. - In the
frontendfolder:-
Install
node >= 22.17.0. -
Run
npm cito download dependencies. -
Run
npm run buildand then copyservice-worker.jsfrom thecoursefolder to thepublicfolder. The service worker is used by sync-message to handletime.sleepand reading from stdin (e.g.input()) in Python. If you want to enable caching (not a good idea when developing), set the environment variableREACT_APP_PRECACHE=1when building. -
Run
npm startto start the frontend development server.
-
- Go to http://localhost:3000/course/
To learn more about the system, see the contributing guide.
Controls
To explore the course more freely:
- Click the hamburger menu icon in the top left.
- Click Settings.
- Turn Developer mode on.
- This should give you two red buttons floating at the bottom of the screen. They change the currently active step, so you can move forward without having to complete exercises or backwards to test a step again.
