A platform for beginners to learn programming in Python
futurecoder
This is a free platform/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/
Currently this is a work in progress. While most of the groundwork is in place, there is a lot to do to make this a complete course ready for users. All kinds of help are needed and greatly appreciated - please consider contributing or donating!
Alternatively, come have a chat on slack.
For a fuller demonstration and explanation, watch this video.
The course is a fully interactive 'book' which requires the user to run code in the provided editor or shell to advance: | |
|
|
This requires a mixture of solving problems or simply typing and running provided code. In the latter case, the user is often kept engaged by being asked to predict the output in a simple multiple choice question: | The code at each step is checked automatically. If needed, the student can get small hints to gradually guide them to the solution: |
|
|
If they're still really stuck, they can reveal the solution bit by bit: |
Or in some cases solve a Parsons problem instead, where they have to put a shuffled solution in the correct order: |
|
|
Tracebacks are more helpful than usual, with several enhancements:
|
Common mistakes can be caught and pointed out to the student. This includes specific checks in some steps as well as linting tailored for beginners. |
|
|
Several debuggers are provided, including snoop... |
|
|
|
...and Python Tutor |
|
|
.envin the repo root.
docker-compose up.
In the
backendfolder:
pythoncommand points to Python 3.9.
If you are on Linux/OSX, run
./setup.sh.
If you are on Windows: (in a Powershell window with "Run as Administrator")
Set-ExecutionPolicy -ExecutionPolicy Bypassto enable running scripts in Powershell.
.\setup.ps1.
This will:
- Install `poetry` if needed. - Create a virtualenv and install Python dependencies. - Create a sqlite database, run migrations, and create a user.
poetry shell.
python manage.py runserver.
- If you get `ModuleNotFoundError: No module named 'resource'` then set the environment variable `SET_LIMITS` to `0`.
In the
frontendfolder:
nodeand version 7.5.2 of
npm.
If you are on Windows: (in a Powershell window with "Run as Administrator")
- Run `npm install --global windows-build-tools`.
Run
npm ci
to download dependencies.Run
npm start
to start the frontend development server.
To learn more about the system, see the contributing guide.
To explore the course more freely: