Core production
Working Python programme, sample inputs, expected outputs and failure tests
Structuring text-based programmes through variables, conditions, loops, collections, functions, files and error messages.
Structuring text-based programmes through variables, conditions, loops, collections, functions, files and error messages.
Completion evidence: Working Python programme, sample inputs, expected outputs and failure tests.
Write a small input-validating programme split into functions; test at least three valid and three invalid inputs.
Working Python programme, sample inputs, expected outputs and failure tests
Write a small input-validating programme split into functions; test at least three valid and three invalid inputs.
Record power, wiring, data or user limits on hardware, and model limitations in simulation.
The order is recommended. Before a project page, complete evidence from foundation, practice and debugging lessons.
Learn to assign variables and work with int, float, str and bool types and type conversion.
Open lesson →Learn to read and write text files safely using with open. An in-depth guide to Getting Started with Files with practical examples, safety notes and explained review activities.
Open lesson →Learn to define functions with def and reuse code with parameters and return.
Open lesson →Learn repetition with for and while loops, using range, break and continue.
Open lesson →Learn how to run Python, the indentation rules, and how to write your first small program.
Open lesson →Learn to read Python error messages (traceback, error type, line) calmly and fix them.
Open lesson →Learn to make decisions in Python with if / elif / else and logical operators.
Open lesson →Learn to read input with input(), convert text to numbers and print output with f-strings.
Open lesson →Learn to store and traverse ordered data with lists and key-value data with dictionaries.
Open lesson →Learn to use modules with import and standard libraries like math, random and datetime.
Open lesson →Build a program that computes total, average and maximum from sample training data and prints a summary.
Open lesson →Use dictionaries and lists to build a program that lists lessons and books for a chosen day.
Open lesson →Combine random, while, if and input to build a working number guessing game.
Open lesson →Learn what Python is, why it is readable and versatile, and where it is used in web, data, AI and robotics.
Open lesson →Learn to create randomness with the random module and build simple game logic like dice and rock-paper-scissors.
Open lesson →| Check | Question | Evidence to keep |
|---|---|---|
| Input | Which value, event or user request enters the system? | Sample inputs and edge cases |
| Process | Which rule, algorithm or physical relationship is applied? | Code, calculation, diagram or state table |
| Output | What should be observed in correct and incorrect states? | Expected–actual comparison |
| Safety | Under which condition should the system stop or request help? | Safe-stop and recovery behaviour |
Structuring text-based programmes through variables, conditions, loops, collections, functions, files and error messages. A correct example alone is therefore insufficient. Completion evidence should be working python programme, sample inputs, expected outputs and failure tests, tested with normal, boundary and invalid inputs.
In the first cycle, pair foundation and application among Getting Started with Files, Functions, For and While Loops, Your Setup and First Program, Reading Error Messages. Predict the result, run or measure it, then explain any difference. Even when prediction and reality match, state which changed condition would break the result.
In the second cycle, complete this laboratory: Write a small input-validating programme split into functions; test at least three valid and three invalid inputs. Do not close with one successful screenshot. Keep the input table, expected behaviour, actual behaviour, error or measurement and the correction in one file.
In the final cycle, connect Project: Simple Sports Statistics, Variables and Data Types, Conditions in Python, What Is Python and Where Is It Used?, Randomness and Simple Game Logic. Let one lesson's output become another lesson's input; show where safe stopping is needed when data type, unit, wiring, timing or user expectation changes.
Repeat the same task one month later with less source support. Compare not only speed or appearance but test coverage, explainability, safety and whether another person can rebuild the work.
Use the foundation produced in Getting Started with Files as an input to Modules and Libraries. Then show in Randomness and Simple Game Logic how the same idea changes under the limits of a larger system. This bridge carries the goal of structuring text-based programmes through variables, conditions, loops, collections, functions, files and error messages. beyond one isolated example.
Add three columns to the working python programme, sample inputs, expected outputs and failure tests file: knowledge carried from the previous lesson, condition changed in the new lesson and result observed in testing. Sharing a word does not establish a connection; one lesson’s output should genuinely become the next process’s input.
Test the connection through this laboratory: Write a small input-validating programme split into functions; test at least three valid and three invalid inputs. After the first attempt, add an edge condition such as empty data, wrong type, disconnected input, extreme value or user error. Record whether the system remains understandable and safe beyond the normal example.
Working Python programme, sample inputs, expected outputs and failure tests
No. A simulator tests logic; physical power, wiring and sensor conditions require separate tests.
Condition, expected result, actual result and change made.
After completing foundation concepts and at least one practice artefact.
Write a small input-validating programme split into functions; test at least three valid and three invalid inputs.
Primary source for current technical behaviour and limits.
Open source →Primary source for current technical behaviour and limits.
Open source →