Input validation and robust programs
Validate a whole-number age between 11 and 18.
OCR J277 2.2 / AQA 8525 programming
Not marked complete
Open lesson →Build on Python Foundations with searching, sorting, validation, files, testing and an independent programming project. Nine original guided lessons with runnable code and separate solutions.
Aligned broadly to the programming skills in OCR J277 and AQA 8525. Always use your current specification for exact assessment requirements.
Validate a whole-number age between 11 and 18.
OCR J277 2.2 / AQA 8525 programming
Not marked complete
Open lesson →Find a target in an unsorted list without using in or index().
OCR J277 2.1 / AQA 8525 algorithms
Not marked complete
Open lesson →Search a sorted list using low, high and mid pointers.
OCR J277 2.1 / AQA 8525 algorithms
Not marked complete
Open lesson →Swap adjacent out-of-order items and record the result of each pass.
OCR J277 2.1 / AQA 8525 algorithms
Not marked complete
Open lesson →Calculate row totals and the largest score in a grid.
OCR J277 2.2 / AQA 8525 programming
Not marked complete
Open lesson →Use reusable functions to calculate average and assign a category.
OCR J277 2.2 / AQA 8525 programming
Not marked complete
Open lesson →Write results to a file, then read and total the values safely.
OCR J277 2.2 / AQA 8525 programming
Not marked complete
Open lesson →Design normal, boundary and invalid tests for a function.
OCR J277 2.3 / AQA 8525 testing
Not marked complete
Open lesson →Combine selection, lists, functions, validation and testing into one quiz.
OCR J277 programming / AQA 8525 programming
Not marked complete
Open lesson →Move beyond GCSE into object-oriented design, recursive algorithms, data structures, databases and project development.
Step through worked code examples and try original GCSE and A-level output and debugging quizzes.
Open Python Practice →