Python Exercises for KS4 Computer Science

10 engaging exercises featuring original skeleton code, giving students practice in two core skills: ❶ debugging programs to make them work as intended and ❷ developing programs further by modifying their functionality.

A carefully selected range of themes (including encryption, string manipulation, validation, 2D arrays and file handling) ensures that the exercises complement teaching of the new GCSE (9–1) Computer Science specifications superbly.

Exercises
  1. Number Game
  2. Rock, Paper, Scissors
  3. Turtle Drawing
  4. The Monty Hall Problem
  5. Caesar Cipher
  6. Check Digits
  7. Hangman
  8. Peg Solitaire
  9. Blackjack
  10. Connect Four

For each exercise:

  • Scenario – including introduction and skeleton code
  • Part A – combines debugging tasks with questions testing understanding students’ understanding of the code
  • Part B – modification tasks of progressive difficulty

Includes answers for all questions and tasks – with working Python v3 scripts on CD.

Plus!

  • Error guide – 14 of the most common syntax and logic errors in Python are explained (with suggested fixes)
  • Cheat sheet revealing the correct Python syntax (a useful reference, particularly for lower-ability)
  • Skills mapping helps you to target specific programming techniques
I really like the overall idea of the resource and the style and structure are excellent, this is a resource I’m looking forward to using... The knowledge grid is excellent... The errors guide is very useful and covers a good range of common errors and errors covered in the challenges. S Forsyth, Computing teacher & Independent Reviewer