1. Resources Home
  2. Elementary School
  3. Computing
  4. Computational thinking
  5. Decomposition
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
Teaching Python Coding: An Exercise for GCSE Computer Science coursework preparation-Answers

Teaching Python Coding: An Exercise for GCSE Computer Science coursework preparation-Answers

This Power Point supports students preparing for GCSE computer science, using python code for notorious game rock paper scissors. Students are expected to examine the code by identifying variables, explaining the coding keywords, structure and approach. In addition, students are given the opportunity to test the code and come up with suggestions for improving the design. Solutions to all questions provided.
chris_vidal
Python Coding Exercise for GCSE Computer Science coursework preparation

Python Coding Exercise for GCSE Computer Science coursework preparation

This Power Point supports students preparing for GCSE computer science, using python code for notorious game rock paper scissors. Students are expected to examine the code by identifying variables, explaining the coding keywords, structure and approach. In addition, students are given the opportunity to test the code and come up with suggestions for improving the design.
chris_vidal
Microbit Unit of Work

Microbit Unit of Work

This Unit of Work includes 10 lessons worth of Microbit programming skills and knowledge. Each lesson has a PowerPoint presentation to go with it, with all other resources also included as Word documents. All resources including PowerPoints are numbered to make it easier to follow the unit, and there is also a teacher’s guide included. The Unit begins with an introduction to Microbits, and concludes with revision, end of unit test and DIRT reflection lesson. Topics included are Variables, Selection, Iteration, and various programming challenges in the form of games that the students can create. It also includes the Microbit Board Game project that takes 2 lessons, which is also available from the Programmer’s Paradise shop on TES Resources. A homework is also included, where the students can create a program using printed code blocks, cut and stick them onto the other half of the paper. This can be used after the first couple of lessons, or later if they are less familiar with the concepts.
MrHawes8
Microbit Revision Lesson

Microbit Revision Lesson

This presentation is to be used for revising programming concepts such as variables, selection, iteration using the microbit. There are tasks included such as creating definitions, thinking about how to program a certain game and a Kahoot quiz (link included on the powerpoint).
MrHawes8
Microbit Iteration Lesson 2

Microbit Iteration Lesson 2

This resource is a PowerPoint presentation that helps to reinforce definite vs. indefinite iteration, and also includes instructions for creating a game for the microbit. Complete code blocks shown in the PowerPoint.
MrHawes8