1. Resources Home
  2. Middle School
  3. Computing
  4. Computational thinking
  5. Generalization and pattern matching
Using functions and creating a Tkinter GUI interface in Python

Using functions and creating a Tkinter GUI interface in Python

21 quick, simple challenges covering using functions and two documents on how to use Tkinter to create a GUI interface. Includes explanation, example code and suggested possible answers. A BONUS “Chunky Challenge” included allowing your students to practice these skills in a larger task to prepare for more complex tasks that involve computational thinking skills. In order to get the most out of these documents I recommend you use them in the following order: functions, GUI part 1, GUI part 2 and finally the chunky challenge. From my experience in teaching Python and other programming languages, I feel it works best when pupils only learn about using functions when they are starting to create more advanced programs that require them. For this reason, this document does assume a lot of previous confidence with using Python's basic programming structure before they tackle this section. If you are a teacher who likes to introduce functions early on in the pupils programming experience, then the functions document will not work in your classroom as it assumes pupils have a confidence with the basic programming skills already in order to complete the challenges. The skills the pupils must already have confidence with include: • input • print • if statements • loops (for and while) • strings • mathematical operators • tuples and lists • saving to and reading from a text file • saving to and reading from a .csv file For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
MORE Python Challenges - If statements

MORE Python Challenges - If statements

Includes a handout giving example code and 6 NEW challenges to try out. Python files also included to allow you to demonstrate one possible answer for each challenge to your class. Pupils will use the following programming features to complete the challenges: • input • print • integers and strings • basic mathematical functions (+, -, *, / and %) • basic if statements including if...else and if…elif…else statements • nested if statements Ideal for a NEA resource bank or to use for starter or plenary activities or use them for homework tasks. Easy to use and integrate into your lessons and handy to have around for pupils who finish other challenges early and need something to do. For more high-quality, ready to use computing and ICT resources visit www.nicholawilkin.com
nwilkin
Python SEVEN ten min starters / plenaries, short lessons

Python SEVEN ten min starters / plenaries, short lessons

There are 7 ten minute Python starters, or plenaries in this presentation. They include identifying code purpose, spotting errors, discussing efficiency of coding. The codes themselves are also useful for ideas of scripts learners can create, add to, or change. They include IF, sub routine, tuples, and other structures. The kids actually love solving the problems. All but one (open ended one) have the solutions on slide 2, to either share, or use as a mark scheme.
hoof_hearted
MORE Python Challenges - The Basics

MORE Python Challenges - The Basics

Includes a handout giving example code and 7 NEW challenges to try out. Python files also included to allow you to demonstrate one possible answer for each challenge to your class. Pupils will use the following programming features to complete the challenges: • input • print • line breaks • integer and floating-point numbers • basic mathematical functions (+, -, *, / and //) Ideal for a NEA resource bank or to use for starter or plenary activities or use them for homework tasks. Easy to use and integrate into your lessons and handy to have around for pupils who finish other challenges early and need something to do. For more high-quality, ready to use computing and ICT resources visit www.nicholawilkin.com
nwilkin
An Autumn Coding Activity with Scratch

An Autumn Coding Activity with Scratch

A computing lesson plan and associated resources for KS2 children programming an autumn leaf catching game with Scratch. Includes step-by-step lesson plan, support materials and pre-written program files. More free primary computing lessons and resources available at www.icompute-uk.com
iCompute
Edexcel NEA preparation for Analysis stage - 9-1

Edexcel NEA preparation for Analysis stage - 9-1

A thorough lesson to prepare year 10 or year 11 learners to tackle the Analysis stage of the NEA. The lesson takes learners through the art of abstracting from a larger problem. Breaking down a task into it's most basic form. They then have practice abstracting detail from two different scenarios. The lesson then moves to the reasons why we decompose, and the importance of making code as simple as possible, adding embellishments later when the bare bones are working. There is opportunity to practice decomposing either singularly, in pairs, or as group work. Possible solutions are given to peer assess, or can be taken out for teacher assessment. The lesson culminates in a test to decompose the first idea presented and abstracted, the Bake Off competition. Homework / extended learning is included, and encourages the learners to abstract and decompose the program controlling a household item.
hoof_hearted
GCSE Brute Force Malware Programming Lesson

GCSE Brute Force Malware Programming Lesson

A programming lesson designed to help the students improve their programming skills, as well as learning about brute force attacks. The lesson begins with a research task and ends with a step-by-step activity to create a program that will guess a password that the user has entered. Included is the PowerPoint presentation, programming instructions for students, and the final code in a text file for the teacher.
MrHawes8
Microbit Offline Programming Homework

Microbit Offline Programming Homework

This homework is intended for students to complete without having to use a computer (useful if they don't have one at home). The instructions are given on the left hand side of the sheet, and they can cut and stick the code blocks onto the right hand side. If students wish to complete on the computer then they can, and this also allows them to test their code to see if it works. Answers also included in the form of an image.
MrHawes8
Poster - Computational Thinking Vocabulary

Poster - Computational Thinking Vocabulary

Computational thinking is full of complicated words. This poster was created to help students pronounce the four elements of computational thinking (Decomposition, Pattern Recognition, Abstraction and Algorithmic Design) phonetically. I have included both PNG and JPEG versions. ***Please leave a review!***
RobbotResources