First programs
Run a Python file and inspect the result; Separate text from numeric values; Make a decision with if and elif.
Preparing your lesson…
Beginner / Structured learning draft / Version 0.9
Structured learning draftWrite, run and debug small Python programs. Learn values, decisions, loops, collections, functions, file handling, classes and tests, then build a stock report from fictional CSV data.
This open learning manuscript is undergoing course-specific editorial review. It does not provide certification. Progress and notes are stored only in this browser.
The problem
Write, run and debug small Python programs. Learn values, decisions, loops, collections, functions, file handling, classes and tests, then build a stock report from fictional CSV data.
Beginners who want to solve small tasks with code, with no previous programming experience required.
Portfolio-ready project
Deliverable: stock_report.py, a sample CSV, tests and a short README with example output.
Downloads open without an account. Practice data is fictional; review each file before using it in another system.
Course plan
Run a Python file and inspect the result; Separate text from numeric values; Make a decision with if and elif.
Process a collection with a loop; Organise records with lists and dictionaries; Write a function that returns a useful value.
Validate a whole-number input in Python; Read CSV records without splitting them by hand; Load JSON and check its structure.
Keep instance data separate in a small class; Test a rule at its boundary; Build a stock report from validated records.
Review your finished work
Use these questions before calling the project finished. Keep a short record of your inputs, results and remaining limitations.
Free companion lessons
Choose the lecture on functions, loops, exceptions, tests or files that matches your current task.
Practice prompt: Before running an example, predict its output. Try an empty input and record how the program behaves.
Checked 2026-10-07. Opens on the provider’s site. Optional certificates may cost extra.Source-led learning
Use these primary references to check the method and any version-specific details before applying your work.