1. Resources Home
  2. Middle School
  3. Computing
  4. Algorithms and programming
  5. Python
Python Basics II - (2 X full lessons) GCSE - Variables / Inputs / Operator Precedence

Python Basics II - (2 X full lessons) GCSE - Variables / Inputs / Operator Precedence

This lesson is one of a series (scheme of work) to teach Coding techniques in Python It has been especially designed for GCSE but it can also be used for A Level / IB Diploma specifications. Learning Objectives Understand what a Variable is in Python Know what the different types of Variables are and what they are used for Understand and use Operator Precedence Know how to take an input of different data types from the user Understand what a Function is The resources in this pack will be enough for 2 X double lessons of Computer Science (each double lesson of around 1 hour 50 minutes) . All necessary resources to run the lessons are included in this download. Lesson presentation with examples of the code Eight Challenges to allow students to show their mastery of the concepts Possible solutions for each of the eight challenges Original Python files to allow you to run the programs to see how the programs work Variables Worksheet This lesson is perfect to use to deliver a full lesson or as revision to help students recap skills they have learnt previously It is also ideal for NQTs and non-specialist teachers who need to learn Python programming or any teacher wanting to fill in gaps in their Python programming knowledge The aim of all my resources is to provide lessons / activities of good quality that will add value to your lessons / schemes of work. All activities and resources have been used in class and any errors will be fixed and resources updated as soon as I am aware of any errors. I have priced my resources at what I consider to be a reasonable cost based upon the amount of effort and work I have put into them but <strong> all comments and suggestions are very welcome </strong> and will be used to improve future resources. If you have an idea for a topic / resource that you would like to see, feel free to leave a comment. The contents of this page and all downloaded materials are copyrighted Harvey Taylor (2018) To see other resources in my shop, click here
haltest
Lessons:   Linear & binary search

Lessons: Linear & binary search

Lessons (x1 hour) on linear and binary searches and logic gate presentation GCSE Computer Science. Starter activities Presentation on linear and binary searches View simulations of both searches Worksheet questions Stretch & challenge activities Plenary Homeworks (Logic gate presentation included)
Teacher_aesg
Lesson:   Binary search, (lesson plan  & x 12 resources)

Lesson: Binary search, (lesson plan & x 12 resources)

Lesson: Binary search, (lesson plan & x 12 resources) (GCSE Computer Science) • To understand and explain how a binary search works An easy to follow and timed lesson plan (x1 hour) that includes x12 resources. Starter activity where pupils run a python program and share ideas how they would search through it to find an item A binary search presentation that introduces and explains the search algorithm A link to a binary search simulation demonstrates a working binary search model A further presentation demonstrates how to code a binary search in python There is a sample binary search written in python A worksheet (x8 marks) of questions and answers on the binary search. A stretch and challenge exercise to identify errors and omissions in binary search code A plenary exercise (x8 questions) using a presentation to test what the pupils understand by a binary search (answers provided) A homework to rearrange lines of code to form a binary search
Teacher_aesg
Beginning Python Programming – Code Breaker

Beginning Python Programming – Code Breaker

A simple example of some basic python commands that creates a code breaking game. The explanation lines have been commented out so you can simply copy and paste the whole document into IDLE (or similar) and see it working, or print to use as a help guide. The task can be extended to include a longer code, different scoring systems, characters instead of numbers, password guesses or allow one player to enter a code that the other has to guess then swap turns… and loads more! (If you find the resource useful, please leave a review as it helps other teachers find it) HackDragn
hackdragn
Lesson:   Linear search, (lesson plan  & x 10 resources)

Lesson: Linear search, (lesson plan & x 10 resources)

Lesson: Linear search, (lesson plan & x 10 resources) (GCSE Computer Science) • To understand and explain how a linear search works An easy to follow and timed lesson plan (x1 hour) that includes x10 resources. Starter activity where pupils line up and hold numbers up to simulate a linear search. A linear search presentation that introduces and explains the search algorithm with supporting examples given in python Three linear search programs written in python, demonstrating a linear search (basic), a linear search (when data item not found) and a linear search (when more than one item you are looking for is found) Pupils view a simulation of a linear search (Internet link provided) A worksheet of six questions and answers on the linear search. A stretch and challenge exercise to program a linear search that counts the number of search terms if there is more than one search term. A plenary exercise to read through an account of visiting a games store and searching for a particular game. The parts of the account that are in error have to be highlighted in red. A research homework exercise and answers about the linear search (x3 questions)
Teacher_aesg
Intermediate Python Programming – Dungeon Escape

Intermediate Python Programming – Dungeon Escape

This is designed to be used after the Beginning Python Programming examples. The price covers the FREE resources also published. A more complex demonstration of how you can build a dungeon/map game. The game utilises a 2D Array to store a map so that directions can be correctly calculated depending on the player position. The progam also uses a global variable for the map, functions, integer floor division and modulus for time calculations. Development of the game could include: Changing the map, altering the size of the map (look out for limiting variables), adding a wandering monster, adding a new message for the starting square, increasing difficulty, adding a new scoring system and lots more that I’m sure you’ll think of. The explanation lines have been commented out so you can simply copy and paste the whole document into IDLE (or similar) and see it working, or print to use as a help guide. (If you find the resource useful, please leave a review as it helps other teachers find it) HackDragn
hackdragn
Beginning Python Programming – Guessing Game

Beginning Python Programming – Guessing Game

A simple example of some python commands that creates the start of a random number guessing game. The explanation lines have been commented out so you can simply copy and paste the whole document into IDLE (or similar) and see it working, or print to use as a help guide. Extension work could include adding a way to use the currently unused ‘playerScore’ variable, checking if the player gets it in 1 guess and gives a special message and lots more. (If you find the resource useful, please leave a review as it helps other teachers find it) HackDragn
hackdragn
Python Basics - (full lesson) GCSE - Interactive and Script mode/ Outputs / Syntax Errors

Python Basics - (full lesson) GCSE - Interactive and Script mode/ Outputs / Syntax Errors

This lesson is one of a series (scheme of work) to teach <strong> Coding techniques in Python </strong> <strong> Learning Objectives</strong> • Know the difference between Interactive and Script mode • Understand how to print out simple Output in Python • Understand what Syntax Errors are and how to avoid them It has been especially designed for GCSE but it can also be used for A Level / IB Diploma specifications. All necessary resources to run the lesson are included in this download. • A lesson presentation with examples of the code • Challenges to allow students to show their mastery of the concepts • Possible solutions for each challenge • Original Python files to allow you to run the programs to see how the programs work • Mathematical operators discovery worksheet This lesson is perfect to use to deliver a full lesson or as revision to help students recap skills they have learnt previously It is also ideal for NQTs and non-specialist teachers who need to learn Python programming or any teacher wanting to fill in gaps in their Python programming knowledge The aim of all my resources is to provide lessons / activities of good quality that will add value to your lessons / schemes of work. All activities and resources have been used in class and any errors will be fixed and resources updated as soon as I am aware of any errors. I have priced my resources at what I consider to be a reasonable cost based upon the amount of effort and work I have put into them but <strong> all comments and suggestions are very welcome </strong> and will be used to improve future resources. If you have an idea for a topic / resource that you would like to see, feel free to leave a comment. The contents of this page and all downloaded materials are copyrighted Harvey Taylor (2018) To see other resources in my shop visit https://www.tes.com/teaching-resources/shop/haltest/">
haltest
Tracing Algorithms and implementing solutions (Dog Years Task)

Tracing Algorithms and implementing solutions (Dog Years Task)

This is a 2 lesson plan to help students interrogate algorithms, starting with tracing through flowcharts and debugging/answering questions. This was developed to help students in the way they approach solving exam questions for Unit 2. Through flowcharts and then a simple pseudocode style tasks set to build upon the prior knowledge. They can then use the tasks set to identify data types and use the tasks to develop program solutions using Python. Student workbook Powerpoint and teacher Powerpoint slides included.
dark_badger
64 Python programming exercise ideas

64 Python programming exercise ideas

64 Python programming exercises ranging from “Hello World” style first programs to file reading and writing. Many tasks also have extension (“bonus”) sections to stretch pupils. Exercises are sorted into sections by the skills needed to complete them (conditionals, loops, arrays, etc). A good resource for homework, extension tasks, and independent learning. Fully editable resource, ready for printing or online use. Topics covered: Basic input and output Conditionals Loops (while and for) Strings Lists Subroutines and functions File reading and writing Some of the exercises in this document require sample code for students to edit: this code is provided in the download. The exercises in this resource can be completed in any programming language, but some of the phrasing in the questions is specific to Python. There is also a Java version of this resource available.
csteacher2048
Presentation:   validation rules (x16 slides)

Presentation: validation rules (x16 slides)

The presentation introduces x7 validation rules; range check, type check, presence check, length check, lookup check, picture check and check digit check. Each one of the descriptions is supported with an example written in python and these have been uploaded as separate text files as part of the resource.
Teacher_aesg
Presentation:   object orientated programming (OOP) (x22 slides)

Presentation: object orientated programming (OOP) (x22 slides)

The presentation introduces the idea of properties and methods belonging to a class, being able to instantiate a class and produce an object and how many objects can be created from the class. The presentation describes the OOP characteristics behind inheritance, encapsulation and polymorphism. It gives six supporting examples using python code to demonstrate the above concepts. At the end of the presentation there is a challenge to create a program to illustrate the new ideas. This is supported by a class diagram that displays the relationship between the classes.
Teacher_aesg
Beginning Python Programming - Rock, Paper, Scissors

Beginning Python Programming - Rock, Paper, Scissors

A simple example of some basic python commands that creates a basic Rock, Paper, Scissors game. The explanation lines have been commented out so you can simply copy and paste the whole document into IDLE (or similar) and see it working, or print to use as a help guide. There is plenty of scope to improve the code: Adding scoring, checking for a real choice instead of assuming a default value of ‘Scissors’, Correct the error if the user types ‘Rock’ or ‘Paper’ and lots more that I’m sure you’ll think of. (If you find the resource useful, please leave a review as it helps other teachers find it) HackDragn
hackdragn
Beginning Python Programming - Chatbot

Beginning Python Programming - Chatbot

A simple example of some basic python commands that creates the start of a chat bot. The explanation lines have been commented out so you can simply copy and paste the whole document into IDLE (or similar) and see it working, or print to use as a help guide. (If you find the resource useful, please leave a review as it helps other teachers find it) HackDragn
hackdragn
Presentation:   recursion programming technique (x10 slides)

Presentation: recursion programming technique (x10 slides)

A presentation that describes what recursion is, uses two pseudo code examples (eg sum numbers and factorial) to illustrate the programming technique, including the importance of using a base condition and the result if no condition is used. There are a series of programming challenges at the end of the presentation.
Teacher_aesg
Caesar Cipher Python Program (KS3 resource)

Caesar Cipher Python Program (KS3 resource)

This was programmed by me as a teaching aid to allow Year 9 pupils to see both how the Caesar Cipher works and to link it directly to programming and computational thinking. It can be used to have students identify the algorithm, use of items such as strings and lists and other variables as well as procedural programming and as an example of the practical use of Tkinter to code the graphical user interface. Another activity is to have pupils comment the program and to explain the job carried out by each procedure. Sensible names are used throughout the code for ease of tracing and to make it more easily understood. Code also contains some comments. Please note: on download rename the caesar1.txt file to caesar1.py and keep the gif file in the same file directory as the program file for the image of Julius Caesar to appear in the program.
Carl67
Python Calculator - Using Subroutines

Python Calculator - Using Subroutines

This is a full lesson which teaches students how to create a simple calculator program in Python using subroutines. Help code is provided with each task for weaker students Task solutions are also included on the PPT The full working code is attached as a text file Extension tasks are included for the more able This is best taught after an introduction to subroutines.
jan3333
Python Turtle Help Sheet

Python Turtle Help Sheet

Print this help sheet this help sheet to support students during Python Turtle lessons. The sheet contains the code needed to get started, an example of drawing geometric shapes using a loop and functions used in Python Turtle. i use this help sheet to keystage 3 students, Python Turtle is a great way of getting students into coding as it creates graphics as opposed to a text response
jkemm
Computer Science - KEYWORDS TABOO

Computer Science - KEYWORDS TABOO

This is a powerpoint of over 140 keywords for GCSE Computer Science. Mainly for the AQA Specification but could also be used for other exam boards. Free to use by anyone but drop me an email if you do use as it would be noce to know woh has used it. The game is called TABOO. It is where the powerpoint is presented at the front and there is different teams. So you could have 2 teams and each team selects a player. Team one player goes and sits in front of the board, facing away from the board. Then their team has to describe the word that comes up on the board without saying the banned words on the screen or the word it self. The person facing away from the board has to guess what the word is behind them. The team with the most correct answers wins. A time limit is fun to do. An ONLINE version is availble here - https://docs.google.com/presentation/d/1zxMbWVjzyUlaBtMdVNxtoIZaANeIcR23hKEbkWZysIA/edit?usp=sharing
joshpayne72
Introduction to Python 3.5/6 Primary to O Level Series 1-45 Pages

Introduction to Python 3.5/6 Primary to O Level Series 1-45 Pages

Introduction to Python 3.5/6 includes the smooth and basic track for learning and getting hands-on experience in Python. It has been focused for Beginners, students of Primary to O’ Level can get command over it. This is a first part consists of 40 Pages. The whole book is going to be stored sooner.
suas2016
Teach yourself the ENTIRE AQA GCSE Computer Science specification

Teach yourself the ENTIRE AQA GCSE Computer Science specification

Looking for a complete solution to help you get to grips with the AQA Computer Science GCSE (9-10)? Need to feel more confident with the subject matter? Not sure how to approach some areas of the curriculum? Want a ready-to-use resource that is ideal for use in the classroom, for homework tasks and self-study? “Nichola thank you. They have saved me a lot of time" Matt - Computing Teacher We have created 7 detailed PDF student workbooks that EXACTLY match the AQA GCE (9-1) Computer Science (8520) specification. Each includes theory, tasks to recap the knowledge and put new skills into practice. they even include the answers! Seperatly these would cost £150 but if you buy them as part of this bundle it only costs £100 saving you a massive £50. “Love these packs - saved me so much work” Laura - Head of Computing Perfect for non-specialist teachers, NQTs or teachers who feel a little unsure about the qualification content and want some ready-to-use tasks to use in class. “Love your revision books. Your resources are such a life saver!” Katie - Non-specialist computing teacher Provided as seven separate PDF documents: • Fundamentals of algorithms • Programming • Fundamentals of data representation • Computer systems • Fundamentals of computer networks • Fundamentals of cyber security • Ethical, legal and environmental impacts of digital technology on wider society, including issues of privacy “Brilliant. These have been fab and my students love them.” Debbie - Computing Teacher These are ideal to use in the classroom, as homework tasks or for independent study as revision for the examinations.
nwilkin
Computer Science: Programming with pseudocode and Python AQA (9-1) GCSE

Computer Science: Programming with pseudocode and Python AQA (9-1) GCSE

Great for AQA (9-1) GCSE Computer Science revision and help with the programming project. This workbook covers the AQA GCSE Computer Science (8520) specification section 3.2 “Programming”. It includes a 116-page PDF document including theory, tasks and includes all the answers. Whenever possible pseudocode is shown alongside the Python code to allow students to compare the similarities and differences between them. Perfect for NQTs, non-specialist teachers or teachers who feel a little unsure about the qualification content and want to improve their subject knowledge. Also ideal as a teaching resource and covers programming in Python from the basics to more advanced techniques including writing to text files, 2D arrays and using subroutines. It also gives help on planning robust programs and testing programs along with the difference between an interpreter, a compiler and an assembler. Table of contents: Data types Variables and constants Iteration Selection Subroutines (procedures and functions Global and local variables Operators One-dimensional arrays Two-dimensional arrays Input and Output Reading from and writing to a text file String handling operations Random number generation Structuring programming Robust and secure programming Data Validation Creating a simple authentication routine Testing your programs Low-level and high-level languages Translators Other workbooks in this series: * Fundamentals of Algorithms GCSE revision student workbook Fundamentals of Data Representation GCSE revision student workbook * Computer Systems GCSE revision student workbook Fundamentals of Computer Networks GCSE revision student workbook Cyber Security GCSE revision student workbook Ethical, legal and environmental impacts
nwilkin
Python Programming Challenge - Creating a Strong Password, With clues, Extension Task

Python Programming Challenge - Creating a Strong Password, With clues, Extension Task

A python programming challenge where students are expected to write a program that checks if a password is considered to be strong. The password must be greater than a certain length, include numbers, symbols, upper & lower case letters, not contain certain words or number pattens. The booklet includes: A tick sheet for when students have managed a certain task A test plan to check that certain passwords are ‘strong’ or not Some useful snipits of python code that will assist the students. An extension task. Good practice for string manipulation. Depending on your group ability, this could be a 1 or 2 lesson activity.
moggga
4 Programming Lessons Pack for Python

4 Programming Lessons Pack for Python

Four lessons: Variables, Selection, Iteration and Functions. Includes 2 worksheets for lessons 2 and 3. Full lessons, starters, activities, plenaries etc, differentiated and include screen shot answers for each python programming activity.
ahandford77
Starter - Pseudo Code Python programming

Starter - Pseudo Code Python programming

A fun starter for pupils to learn and practise Pseudo code and prepare pupils for coding in python or in other programming languages. The worksheet helps pupils create a pseudo code with a fun pirate adventure that includes various programming key words. Two files: one file is a pupil file ready to print (A4) and one file for the teacher with a suggested answer for differentiation.
ahandford77
One and Two Dimensional Arrays (1D & 2D Arrays) Knowledge Organiser GCSE OCR Computer Science J276

One and Two Dimensional Arrays (1D & 2D Arrays) Knowledge Organiser GCSE OCR Computer Science J276

My current year 11 students have been extremely positive about the Knowledge Organisers that I have created for their Computer Science revision (and students in previous years on the legacy spec). This resource covers 1D and 2D arrays, from the pseudocode for declaring them, terminology and python examples of using loops through arrays to search or amend data. This can be used with all abilities as it is good for revising the main points needed to be able to answer most exam questions about this topic. I have been using them alongside example exam questions so that the students can see that the information is in the knowledge organiser but they just need to apply it to the specific question. This covers the new J276 OCR specification for GCSE Computer Science. You can either buy this knowledge organiser on its own - or all eight are available for a slightly lower overall cost. Please do leave feedback if possible, I hope you find it useful.
Raych6000
Programming Wordsearch

Programming Wordsearch

This is a wordsearch for a programming unit. Instructions are the usual for a wordsearch. It can be used as a starter or plenary.
14bensona
Scratch Splat

Scratch Splat

This is a game of Splat for a programming and control unit. Instructions: Have two volunteers have rulers and stand back to the interactive white board. Say the definition and they have to hit the word that goes with it. This can be quite a fun plenary for students.
14bensona
Scratch WWTBAM

Scratch WWTBAM

This is a version of the WWTBAM. Questions cover Scratch and the use of it. This is a good resource to use at the end of a Scratch or programming unit. This is mainly for KS3.
14bensona
Python Workbook

Python Workbook

This is a workbook to teach the basics and some more advanced aspects of the Python program. All instructions are included in the booklet. Be aware that this is for Python 3, it may not work completly for previous versions.
14bensona
Programming and Control PowerPoint

Programming and Control PowerPoint

This is a PowerPoint for a programming and control unit. It details work to be completed in the unit, giving some outline to Scratch and Python. For other worksheets and activities linked, see my other resources.
14bensona
KS3 Scratch Booklet

KS3 Scratch Booklet

All instructions are included in booklet. This is a booklet aimed at a KS3 group as a recap to Scratch allowing them to design and create their own game. This should be enough for 2/3 lessons worth.
14bensona