Python practice for GCSE computer science
The programming questions reward code you have written and run. Practise little and often.
What to practise
Variables and data types, input and output, IF statements, FOR and WHILE loops, lists, functions with parameters and return values, and reading and writing files.
Python lessonsThe first lessons are freePractise in exam style
| Skill | In Python |
|---|---|
| Selection | if / elif / else |
| Loops | for and while |
| Lists | names.append(x) |
| Functions | def area(w, h): |
When your code breaks
Read the error from the bottom up: the last line says what went wrong, and the line number says where. Then test one small change at a time.
- Read the last line of the error
- Go to the line number
- Change one thing
- Run it again
Printable Python and SQL cheat sheetsIn the Shop Questions
Do I need to install Python?
No. The lessons and the playground run Python in your browser.
Related
Helps with GCSE computer science (AQA, Pearson Edexcel and OCR). AQA, Pearson Edexcel and OCR are trade marks of their owners. Brainlag is independent and is not affiliated with or endorsed by any exam board.