Primary python resources

Keeping your class engaged with new and interesting classroom resources is vital in helping them reach their potential. With Tes Resources you’ll never be short of teaching ideas. We have a range of tried and tested materials created by teachers for teachers, from early years through to A level.

Breathe new life into your lesson plans with our primary and secondary classroom resources. Whether you’re looking for fun maths worksheets or brand new guided reading activities, we have thousands of free and premium resources for you to download. From early years to primary, you’ll find phonics worksheets and numeracy games and all you need to revise for Sats. From secondary to post-16, we have everything from French lessons to algebra activities, as well as GCSE revision guides and more.

Popular subjects

More
  1. Resources Home
  2. Primary
  3. Computing
  4. Algorithms and programming
  5. Python
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

By 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)

By 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)

By 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.

By 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).

By 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.

By chris_vidal

Python - User Interface Programming - GCSE / AS / A - Level - Tkinter

Python - User Interface Programming - GCSE / AS / A - Level - Tkinter

This is a series of 3 activities which introduce the user interface library tkinter to students. It helps them build a simple user interface that looks at a text file. The first worksheet introduces them to text boxes and buttons. This is fairly straight forward. The second activity starts building a simple database using a text file that will read and write information. The third activity builds on task two and shows how to navigate back through the records and it allows the student to delete a record from the text file. It allows people to add more records to the file but it also allows people to read information from a file. This the basis for building on and using an actual database later on. There are some final solutions attached through the zip files which will help you on your computer.

By r_chambers

Python - Tkinter - User Interface - Computer Science - Programming - OCR

Python - Tkinter - User Interface - Computer Science - Programming - OCR

This is a simple task which will allow students to create a simple user interface in Python. It uses the Tkinter library which is built into most schools. They're able to create some simple procedures which quit and display error messages. It shows candidates how to add in buttons and gets them creating a simple interface in Python which they can use for programming. The idea of this is to get A-Level students started so that they can start thinking about using Python for their main project. It is suitable for GCSE and Lower Level students.

By r_chambers

OCR - Computer Science - Programming Challenges

OCR - Computer Science - Programming Challenges

These are 4 programming challenges which include the following programming techniques. You can get the students to work through these tasks and evidence the work. I get my students to show print screens and testing for each of these tasks and then they can use the tasks combined to make their own program. *While Loops *Variables *Input *Output *Lists *For Loops *String Manipulation

By r_chambers

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

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

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 introductory lesson, 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.

By chris_vidal

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

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

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 introductory lesson, 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.

By chris_vidal