1. Resources Home
  2. Middle School
  3. Computing
  4. Computational thinking
  5. Logical reasoning
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
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
Application of Computational Thinking - 21 Card Trick

Application of Computational Thinking - 21 Card Trick

My popular twitter poster is now available to download for FREE from my tes shop! Wow your friends with this fun card trick... all done through algorithms! Follow the instructions on the poster to complete the trick! Try it out in within the classroom, can be used as a fun starter activity! I have included both JPEG and PNG versions of the poster. ***Please leave a review!***
RobbotResources
GCSE Bitmap Image File Size Calculator Programming Lesson

GCSE Bitmap Image File Size Calculator Programming Lesson

This lesson is based around programming skills and knowledge, as the students work through the worksheet (on the computers is best a they can copy and paste code snippets into the other document). Once they have answered the questions on the worksheet they should also have the Bitmap Calculator Code document containing the code snippets required to create the program. Then they can go onto Visual Basic to write the program, and test it to see if it is working correctly. There are also a couple of extension tasks at the bottom of the worksheet. I have also included the final code that I used to demonstrate the program working at the start of the lesson, and the PowerPoint which I used to outline the task and give them instructions on how to complete the tasks.
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
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 DIRT Reflection lesson

Microbit DIRT Reflection lesson

Included is a DIRT lesson following a microbit unit of work. Includes a fake Kahoot leaderboard to display top scores, and questions used to reinforce knowledge of the topic.
MrHawes8