A larger challenge which allows pupils to test their skills in Python. This is a challenge they can get their teeth into.
This challenge requires the pupils to create a “Mastermind” game. It includes a handout which explains the challenge to the pupils and outlines possible problems they will have to overcome in their program.
The skills the pupils will need to be familiar with in order to complete this challenge are:
- Input and display data
- Random choice from a list
- If statements
- Loops (while and for)
This program should take at least an hour to complete and for pupils who have not completed it in the time available they could complete it for homework. It can easily be extended into a larger project if you want to include a class discussion and time for planning using computational thinking skills such as flow charts ad pseudo-code (although the answers for these are not included).
This resource also includes a Python file containing one possible answer.
Written for the UK market.
For more resources including complete units of work visit www.nicholawilkin.com