1. Resources Home
  2. Primary
  3. Computing
  4. Computational thinking
  5. Generalisation 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
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
Application of Computational Thinking - Exam Questions

Application of Computational Thinking - Exam Questions

Download my popular Twitter poster here! If you're students struggle with tough exam questions, get them in the habit of applying computational thinking to the problem. This poster provides students a guide on how to apply the concepts of computational thinking to tackle tricky exam questions. I have included both a PDF and JPEG version of the poster. ***Please leave a Review!***
RobbotResources
Application of Computational Thinking - Coding Classic Games

Application of Computational Thinking - Coding Classic Games

My popular twitter poster is available for download here! This poster gives an example of how computational thinking can be used to convert classic games such as 'rock, paper, scissors' and 'noughts and crosses' into algorithms. Try out in your classroom! I have included JPEG and PNG versions of the poster. ***Please leave a review!***
RobbotResources
Rubber Duck Debugging

Rubber Duck Debugging

How can a rubber duck help you be a better programmer? How can they possibly have a place in our classrooms? What is rubber duck debugging? When I first heard about this strange phenomenon, I was a little sceptical. Is this just another gimmick? Is there a surplus of rubber ducks that need repurposing? No, apparently this is a recognised programming technique that really works. What do you do? You need enough rubber ducks so that each pupil has their own duck. Amazon presently have them on sale 20 ducks for £0.68 + £1.59 UK delivery (https://www.amazon.co.uk/Lumanuby-Bathtime-Yellow-Rubber-Children/dp/B071DT177Z/) Run through the presentation with them, give them the 3 Python programs to practice with and watch as your programming classes learn how to solve many of their programming problems without having to rely on you! If you are having trouble finding non-squeaky ducks you can either print out an image of the duck to be blue-tacked to the corner of their screen for everyone, or try the squeaky ducks but tell them, if there is an excessive amount of squeaking they will have their duck taken away and given a "flat duck" instead.
nwilkin