Whole-school generalization and pattern matching resources

Keeping your class engaged with fun and unique teaching resources is vital in helping them reach their potential. On Tes Resources we have a range of tried and tested materials created by teachers for teachers, from pre-K through to high school.

Breathe new life into your lesson plans with our elementary, middle school and high school classroom resources. Whether you’re looking for fun math worksheets or brand new guided reading activities, we have thousands of free and premium resources for you to download. From kindergarten to elementary you’ll find K-5 resources, including phonics worksheets and numeracy games. From middle school through to high school we have everything from Spanish lessons to algebra activities, as well as Common Core-aligned lessons and revision guides for tests.

  1. Resources Home
  2. Whole School
  3. Computing
  4. Computational thinking
  5. Generalization and pattern matching
150 Python Challenges

150 Python Challenges

A single location to download all of our Python challenges (previously sold as separate downloads). Includes a single 149 page book outlining the challenges giving helpful instructions including how to install Python and SQLite3 as well as including sample code to help you and your classes complete all of the challenges. Screenshots of each solution included along with the original Python file so you can demonstrate the working solution to your class and talk through the code with them. Includes ready-to-use challenges to practice with and 5 larger chunky challenges to help pupils prepare for their NEA coursework and ideal to be used for the NEA resource bank. Suitable for KS3, GCSE and A Level Computer Science pupils. Covers: • Inputting and displaying data • Strings • Maths • If statements • For and while loops • Random • Turtle • Tuples • Lists • Directories • Numerical Arrays • 2D lists and directories • Reading from and writing to an external text file • Reading from and writing to an external .CSV file • Functions • TKinter • SQLite3 A complete, ready to use resource that will prove invaluable to your pupils to help them learn Python as a reference guide as they progress with their programming. For more high-quality resource visit www.nicholawilkin.com

By nwilkin

Python Art Gallery Chunky Challenge using a GUI interface and SQLite3

Python Art Gallery Chunky Challenge using a GUI interface and SQLite3

A larger challenge which allows pupils to test their skills in Python. This is a challenge they can get their teeth into. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This challenge requires the pupils to create a program that will read and write to an SQL database with a one-to-many relationship. 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: - Functions - TKinter - SQLite3 This program should take a few lessons to complete and covers all the key programming skills needed to attain a high grade in their programming assessment. This resource also includes a Python file containing one possible answer. For high-quality complete units of work which are suitable for non-specialist teachers visit www.nicholawilkin.com.

By nwilkin

Python Harry Potter Sorting Hat Lesson

Python Harry Potter Sorting Hat Lesson

Overview: In this lesson, students will create a Harry Potter style sorting hat using lists in Python. Learning Objectives: - Understand and use sequence in an algorithm - Understand and use iteration in an algorithm (FOR and WHILE loops) - Understand and use selection in an algorithm (IF, Else and Else if)​

By Wolves_CLC

Python Magic 8 Ball Lesson

Python Magic 8 Ball Lesson

Overview: In this introduction to programming using Python, students will create a “Magic 8-Ball” game. The game will work by asking the user to input a yes / no style question and will respond with one of it’s classic predictions such as: “Yes”, “Most likely” and “Outlook not so good”. Learning Objectives: - Understand and use sequence in an algorithm - Understand and use selection in an algorithm (IF, Else and Else if) - Understand and data structures in an algorithm (for example, Lists, Tables or Arrays) - Understand the importance of comments in code

By Wolves_CLC

Python creating and using an SQL database with SQLite3

Python creating and using an SQL database with SQLite3

A useful single document to help teach pupils (and teachers) about using SQLite 3 in Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 7 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops saving to and reading from a text file, using functions and creating a GUI interface. For more lessons and complete units of work visit www.nicholawilkin.com.

By nwilkin

How to make a Mad Libs game in Python

How to make a Mad Libs game in Python

Overview: In this lesson, students will code a “Mad Lib” game in Python. The game will work by prompting the user to enter some words (e.g. person’s name, noun, adjective, place, object etc.) and substitute these with blanks in a story. Learning Objectives: - Understand and use sequence in an algorithm - Understand and use iteration in an algorithm (FOR and WHILE loops) - Understand and use data structures in an algorithm (for example, Lists, Tables or Arrays)

By Wolves_CLC

Python Shakespearean Insult Generator

Python Shakespearean Insult Generator

Overview: In this lesson, students will learn how to create a 'Shakespearean Insult Generator' using Python Learning Objectives: • Understand and use sequence in an algorithm • Understand and use iteration in an algorithm (FOR and WHILE loops) • Understand and use selection in an algorithm (IF, Else and Else if) • Understand and use data structures in an algorithm (for example, Lists, Tables or Arrays)

By Wolves_CLC

Computational Thinking

Computational Thinking

Purchase my three comprehensive guides to computational thinking within one bargain package! Includes: Computational thinking for KS3 Computational thinking for KS4 Problem Solving for KS3

By RobbotResources

Computational Thinking ProblemSolving

Computational Thinking ProblemSolving

Within this unit of work, students will learn how to apply the concepts of computational thinking to a range of different problem solving puzzles. The resource is split into four sections; 1. Computational thinking puzzles - a range of different types of puzzles which encourage students to apply the concepts of computational thinking to solve them. Puzzles include mazes, word ladders and even a game of draughts (or checkers)! 2. Logic Gates - students will need to solve the logic gate puzzles to identify if the output is on (1) or off (0) dependent on the gate sequences. 3. Flowchart puzzles - students need to work out the correct answers to the questions asked dependent on the input information and the flowchart conditions set. 4. Pseudo code puzzles - students need to read through the pseudo code algorithms and demonstrate their understanding by answering the questions asked. Each puzzle is given a score. Once complete students check their answers and work out their overall scores and place them in the grid provided. They then compare this with the overall levels to find their overall level: Rookie, Pro or Beast! This can then be used within assessment to see if students are performing at, below or above expected levels. Pack includes a student PowerPoint resource to complete and answers for each puzzle. ***Please Leave a Review!***

By RobbotResources

Python creating a GUI with TKinter - part 2

Python creating a GUI with TKinter - part 2

A useful single document to help improve pupils (and teachers) knowledge of creating a GUI (Graphical User Interface) using the TKinter library in Python. This is the second document about GUI interfaces using TKinter and it is strongly recommended that the pupils are familiar with the first document before attempting to tackle the challenges in this document. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 11 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops saving to and reading from a .csv file and using functions. Your pupils should also have a sound knowledge of using that basics of GUI interfaces using TKinter, tuples and lists along with saving to and reading from a text file and using functions. For more lessons and complete units of work visit www.nicholawilkin.com.

By nwilkin

Object Orientation - OCR - Alevel - Python - Package

Object Orientation - OCR - Alevel - Python - Package

This package includes 3 powerpoints that introduce object orientation to students. On top of the object orientation powerpoints, there are worksheets that help students build on the skills that they have learnt. The first activity sheet shows how to set up a class in python and how to call on it. The second shows how to pass parameters into your class using constructors. There is theory supported in the powerpoint. The third lesson shows how to design a class and is a good introduction to class diagrams.

By r_chambers

Lesson 2 - Object Orientation - OCR - Alevel - Python

Lesson 2 - Object Orientation - OCR - Alevel - Python

This lesson introduces constructors to students and talks about the need for setting up the class. There is an example program to work through with a worksheet attached. it shows students how to initialise variables in their program and how to pass items in. This should help students become more confident and builds on nicely from the previous task. If students have been absent they can pick it up quite easily.

By r_chambers