Skip to content
Brainlag

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 free

Practise in exam style

SkillIn Python
Selectionif / elif / else
Loopsfor and while
Listsnames.append(x)
Functionsdef 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.

  1. Read the last line of the error
  2. Go to the line number
  3. Change one thing
  4. 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.