A console/terminal collection of 19 Python-basics lessons for Windows 11 and Ubuntu Linux 24.04. Each lesson is one small script under src/lessons/, so you run them one at a time and read the code alongside the output. The lessons use the standard library only, with no third-party packages and no GPU.
[Lessons]
- 01 hello world, 02 comments, 03 variables, 04 strings, 05 print.
- 06 input, 07 math, 08 if, 09 list, 10 for and while loops.
- 11 tuple, 12 set, 13 dict, 14 function, 15 class.
- 16 import, 17 file read and write, 18 exception, 19 threads.
[Folder Structure]
- CLAUDE.md / AGENT.md: program specification (identical content).
- CHANGELOG.md: change log.
- copyright.txt: copyright notice.
- src/lessons/: the 19 lesson scripts, one file per lesson.
- src/: the launcher scripts and this document.
- venv/: Python virtual environment, created by step 1.
[Prerequisites]
- Operating system: Windows 11 or Ubuntu Linux 24.04.
- Python 3 and pip.
- No third-party packages are needed: the lessons use the standard library only.
- No GPU required.
[Instructions]
Step 1: create the virtual environment
Create the venv. There are no requirements to install, because the lessons use the standard library only.
Windows 11: src\01_venv_create.bat
Ubuntu 24.04: bash src/01_venv_create.sh
Step 2: activate the virtual environment
Activate the venv you just created. On Linux, source it so the environment variables apply to the current shell.
Windows 11: src\02_venv_activate.bat
Ubuntu 24.04: source src/02_venv_activate.sh
Step 3: run a lesson
Run one lesson by name. Without a name it runs 01_hello_world.
Windows 11: src\03_run_lesson.bat
Ubuntu 24.04: bash src/03_run_lesson.sh
Run a specific lesson by passing its name:
Windows 11: src\03_run_lesson.bat 10_for_while_loop
Ubuntu 24.04: bash src/03_run_lesson.sh 10_for_while_loop
Step 4: clear the virtual environment (optional)
Delete the venv/ folder to free disk space when you no longer need it.
Windows 11: src\99_venv_clear.bat
Ubuntu 24.04: bash src/99_venv_clear.sh
[Usage Notes]
- Lesson 06 (06_input.py) waits for keyboard input, so it does not finish on its own.
- Lesson 01 prints a Chinese greeting on purpose: it is the lesson's UTF-8 output test, and the code comment says so in English.
This SDK is built in AppForAI - AI Dev Tools.
Purchase license separately: USD 600, permanent authorization, single APP authorization, single machine authorization, one-year activation, one-year download, one-year update, one-year email technical support.