1. Resources Home
  2. Primary
  3. Computing
  4. Algorithms and programming
  5. Python
Teaching Coding Concepts using Python

Teaching Coding Concepts using Python

This photocopiable resource has been produced to provide KS2 and KS3 students with exciting and engaging opportunities to learn coding concepts using the Python programming language. There are enough activities for 4 to 5 lessons. Including: Algorithms Sequences Iteration (Repetition) Selection Variables The resource covers the programming aspect of the computing national curriculum. use two or more programming languages, at least one of which is textual, to solve a variety of computational problems make appropriate use of data structures [for example, lists, tables or arrays] design and develop modular programs that use procedures or functions.
edulitolearn
MicroBit Help Sheet (for MicroPython)

MicroBit Help Sheet (for MicroPython)

A help sheet to be used as a MicroPython command reference by students engaging in independent work with the MicroBit. Most basic MicroPython commands and statements for KS3 are listed, in a visual format not dissimilar to Scratch, so KS3 students can be nudged to relate the two ("it's basically choosing the right commands and putting them in the correct order, you just have to type them instead of dragging them").
CompuTeach
Python Iteration L5 - Introduction to while loops

Python Iteration L5 - Introduction to while loops

From Scratch to Python - While Loops (Iteration) Lesson 5 This series of lessons will prepare all students, particularly in KS3 to develop their computational thinking skills, which is required for most KS4 qualification. It is also aimed at students aiming to sit GCSE computer science, and will support, provide a thorough and secure understanding of loops, particularly condition controlled while loop. There is adequate practise at applying skills. Starter plenary and homework activities included. This lesson is aimed at all abilities, although lower ability may require more time to process content or additional lessons to complete all tasks. Lesson objectives are extracted from the new computing curriculum in England for KS2 and KS3. Although this lesson can be taught as stand alone, students who have already used algorithms in scratch series and from scratch to python will benefit from continuity and familiarity of keywords and exercises. Students will need knowledge of how to use input and output function with knowledge of variables in python. Or alternatively purchase introduction to python - from scratch to python series. They will also need the python IDLE environment which is available to download free at https://www.python.org/downloads/release/python-350/. Please feel free to email chris_vidal2000@yahoo.com for feedback or further advice.
chris_vidal
Python Decision Making L4 - Sorting Lists

Python Decision Making L4 - Sorting Lists

This series of lessons will prepare all students, particularly in KS2 and KS3 to develop their computational thinking skills, which is required for most KS4 qualification. It is also aimed at students aiming to sit GCSE computer science, and will support, provide a thorough and secure understanding of fundamental topics with adequate practise at applying skills. Decision making is an essential skills to master in computer science and students from any level can be guided through this lesson with teacher notes and make good progress. Starter plenary and homework activities included. This lesson is aimed at all abilities, although lower ability may require more time or lessons to complete all tasks. Lesson objectives are extracted from the new computing curriculum in England for KS2 and KS3. Although this lesson can be taught as stand alone, students who have already used algorithms in scratch series will benefit from continuity and familiarity of keywords and exercises. Students will need knowledge of how to use input and output function with knowledge of variables and lists in python. Alternatively purchase introduction to python - from scratch to python series. They will also need the python IDLE environment which is available to download free at https://www.python.org/downloads/release/python-350/. Please feel free to email chris_vidal2000@yahoo.com for feedback or further advice.
chris_vidal
From Sratch to python - Decision Making (Selection using Lists) Lesson 3

From Sratch to python - Decision Making (Selection using Lists) Lesson 3

This series of lessons will prepare all students, particularly in KS2 and KS3 to develop their computational thinking skills, which is required for most KS4 qualification. It is also aimed at students aiming to sit GCSE computer science, and will support, provide a thorough and secure understanding of fundamental topics with adequate practise at applying skills. Decision making is an essential skill to master in computer science and students from any level can be guided with searching through lists in this lesson with teacher notes and make good progress. This lesson also covers invalid user entry using exception handler. It is useful for students to cover previous lessons in decision making. Starter plenary and homework activities included. This lesson is aimed at all abilities, although lower ability may require more time or lessons to complete all tasks. Lesson objectives are extracted from the new computing curriculum in England for KS2 and KS3. Students who have already used algorithms in scratch series will benefit from continuity and familiarity of keywords and exercises. Students will need knowledge of how to use input and output function with knowledge of variables in python. Or alternatively purchase introduction to python - from scratch to python series. They will also need the python IDLE environment which is available to download free at https://www.python.org/downloads/release/python-350/. Please feel free to email chris_vidal2000@yahoo.com for feedback or further advice.
chris_vidal
Python Turing Test – Creating a chatting robot (Chat bot)

Python Turing Test – Creating a chatting robot (Chat bot)

Overview: In this brief introduction to programming using Python, students are going to create a chatting robot (chat bot) designed to confuse the user into thinking that they are talking to a real person. 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 why it is so difficult to create a computer that can seemingly think for itself
Wolves_CLC
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)​
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
Wolves_CLC
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)
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)
Wolves_CLC
Computational thinking starters and plenaries

Computational thinking starters and plenaries

This set of computational thinking starters and plenaries will support the teaching of all aspects of computer science. Ranging from simple to difficult, a great way to develop students ability to think and prepare for new computer science curriculum.
chris_vidal
GCSE Computer Science 9-1 Using SQL to Search for Data using Python

GCSE Computer Science 9-1 Using SQL to Search for Data using Python

GCSE Computer Science - Programming Techniques : LO1: The use of records to store data LO2: The use of SQL to search for data Using the subject matter of a Year 11 Computer Science class, students learn how to create a table in a database, how to add individual records, how to add multiple records and then how to search for records. The extension task is then to create a database on a topic of their choice using the programming techniques shown in the walk-through-talk-through example. This lesson comes complete with notepad copies of the Python code with and without comments (just copy and paste code into Python).
Pipjen77