1. Resources Home
  2. Primary
  3. Computing
  4. Algorithms and programming
  5. Python
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").
DonDino
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
From Scratch to Python - Introduction into high level computer programming. Lesson3

From Scratch to Python - Introduction into high level computer programming. Lesson3

A sound understanding of computing concepts will help students to see how to get the best from systems they use and how to solve problems when things go wrong. This series of lessons will empower students with fundamental computer coding skills to become potential creators of technology, and not limited to users. In addition, they will prepare potential computer science students who would like to study the subject at GCSE level with secure knowledge and computational thinking ability in key stage 2 and 3. This is the 3rd lesson in the series, structured in a flexible format to accommodate students with different abilities. It is advisable for students to be taught algorithms in scratch series before moving on to python. There adequate opportunity for students to practise and apply their skills whilst demonstrating/ documenting knowledge and understanding in attached evidence sheets. The lesson structure is simple to follow or teach even if you are not an experienced computer science teacher. This lesson covers the languages, algorithms and computation aspect from the national curriculum for computer science in England and Wales. Students will design, debug, test and discuss and document their own programs. Python Software required to teach this series of lessons can be downloaded from https://www.python.org/downloads/ without cost. Students can take advantage of this opportunity to practise their skills at home. Contact chris_vidal2000@yahoo.com for further advice or support.
chris_vidal