Syllabus notes
Analyse inputs and outputs, design an algorithm, code, test and debug. Python indentation defines blocks. Example factorial: start at 1 and multiply integers 2 through n; for n=5 the output is 120. Test 0 and 1 as boundary cases.
Practice
- Trace an example step by step.
- Explain one safety, ethics or validation check relevant to this unit.