1. Resources Home
  2. Primary
  3. Computing
  4. Algorithms and programming
  5. Python
Getting your head around while loop - ITERATION for beginners.

Getting your head around while loop - ITERATION for beginners.

Understanding variables and loops are the most significant aspects of coding. It is important for students in early stages to grasp the concept of how loops work if the are to be successful candidates for computer science. This power point presentation is a scaffold building fundamental steps required in understanding and applying loops using python. Students must already know how to use basic input and output functions in python. The language and terminology used is simple enough for a non specialist to use and teach a coder at beginner level. The python idle software is available to download for free at https://www.python.org/downloads/. After students have fully grasp the concept of loops and how they work, they extension task will provide a challenge for them to apply their knowledge, using computational thinking to improve their code.
chris_vidal
[GCSE+IGCSE] Python Text Adventure Coding Challenge

[GCSE+IGCSE] Python Text Adventure Coding Challenge

This is possibly my most favourite piece of work to do with the students. I do it as an end of year activity when they are a bit more confident with the material. We create a zombie survival text adventure game and I have recently updated it to include questions similar to what has been in the recent exam and in the exemplar exam What is covered Local and Global Variables Variable Types Input and Validation Conditional Loops Fixed Loops Arrays Subprogram calls (Functions, Procedures and Pre-defined) Libraries Complex conditions and selection Repetition and Iteration What is included Word document with instructions, task overview and more detail on the activity Student Starting Python file (in zip folder) Teacher completed exemplar file Answer document to questions
PaperAirplane
FREE Python lesson - Introduction to Python

FREE Python lesson - Introduction to Python

i created a nice introduction to Python for Year 7. It starts with the basics of how to use Python for beginners. Year7 really enjoyed it. I hope it is useful to you. It is a powepoint so you can amend it to your class.
khedges123
Lesson:   algorithms, decomposition and anstraction

Lesson: algorithms, decomposition and anstraction

The lesson is suitable for KS3 / GCSE Computer Science. Starter, asking pupils to comment on an article about the impact of algorithms Presentation on what an algorithm is, giving examples of algorithms, different kinds of computer algorithms and how these sets of instructions can be developed into a program. Sample python programs supporting the presentation on algorithms Presentation on decomposition saying what it is, giving examples and looking at how decomposition can apply to programs effecting the way a person programs (eg functional programming) Task to decompose an authentication probem. Presentation on abstraction, looking at what it is, giving examples and considering what data can be removed as part of the abstraction process. The pupils are given a task to remove any unecessary detail from an algorithm. The pupils complete five abstraction questions . Plenary, the pupils split into pairs and are given a problem. One person explains in a series of steps how to solve the problem (decomposition), whilst the other person tries to intervene to remove any unecessary detail from the explanation (abstraction) Homework task on how to make toast breaking this problem down using decomposition / abstraction.
Teacher_aesg
KS2 & KS3 Creating Fun Games using Python

KS2 & KS3 Creating Fun Games using Python

This 10 page photocopiable resource has been produced to provide KS2 and KS3 students with exciting and engaging opportunities to learn coding concepts using Python in a series of 4 fun standalone projects. The projects are: Game 1 -Play the name game - Students have fun with their name. Game 2 -Guess the number -Students have fun making a game to guess the number. Game 3 - Mystery of the Crystal Ball - Students have fun looking into their future. Game 4 - Two Player Horse Race Game Each project takes from 30 minutes to an hour and a half to complete and all of them include a series of activities to extend learning.
edulitolearn
Lesson: efficiency of algorithms

Lesson: efficiency of algorithms

The lesson is suitable for GCSE / KS3 Computer Science (see other similar lessons in this series) To understand that more than one algorithm can be used to solve the same problem. To compare the efficiency of algorithms explaining how some algorithms are more efficient in solving algorithms than others, specifically space and time efficiency of algorithms Please leave a comment if you like the resource. Lesson plan Presentation on space efficiency that looks at a simple algorithm of adding up consecutive numbers (eg 1 + 2 + 3 + 4 … ) in a sequence, then compares this approach with using a loop and then looks at using an equation to solve the problem as an example of space efficiency in an algorithm. Pupils program these algorithms for themselves to see how lines of code can be reduced in a program. The above presentation is supported by three python programs (eg sequence, loop, equation python programs) Presentation on time efficiency that looks at two algorithms (one using a loop and another using an equation) to see which ones are more time efficient. Pupils program these algorithms to see how execution time of a program can be reduced. The above presentation is supported by two python programs (eg loop and equation python programs) The pupils are then given a program task to try to create a program that will calculate the nth term of the sequence 2, 4, 8, 16 in the most efficient way. A stretch and challenge exercise considers how to program a more difficult sequence of numbers Plenary presentation quiz to test pupils knowledge Homework looking at definitions of space and time efficiency and an example algorithm (answers provided)
Teacher_aesg
File handling - Python-

File handling - Python-

File handling presentation and tasks for KS4/KS3 programming unit / python. Please make sure to leave feedback if you like it or if you think it can be improved somehow, this will allow me to improve it if needed.
barabcu
Python Worksheets KS3

Python Worksheets KS3

A set of 5 Python worksheets. Includes practical activities and questions. Comes with video guidance for each worksheet, which helps with differentiation. Python worksheet #1 - Given separately on TES as a free sample. For absolute beginners. Getting set up, using the Shell and 1st program using the editor. https://www.tes.com/teaching-resource/python-worksheet-for-ks3-11912924?theme=1 Python worksheet #2 - Using variables and inputs. Python worksheet #3 - Conditional statements (IF, ELIF, ELSE). Python worksheet #4 - Arithmetic and relational operations. Stretch and challenge - using the Math library. Python worksheet #5 - Commenting and debugging
chrdol72
Python Worksheet for KS3

Python Worksheet for KS3

Free Python worksheet for absolute beginners. Includes practical activities and questions. Comes with video guidance for the worksheet, which helps with differentiation. Includes step-by-step guide on getting set up and using IDLE. Maths activities using the Shell. Using the editor and making a simple program. Finally there are a series of questions to check understanding.
chrdol72
Drawing & Plotting Shapes in Scratch & Python Turtle

Drawing & Plotting Shapes in Scratch & Python Turtle

A great “comparing software” course where students learn to draw shapes using script. They start by drawing geometric shapes in Scratch, then plotting shapes in Scratch and using Functions for repeated code / shapes. Students then repeqt the process using Python Turtle on the free programming practice website www.repl.it
jkemm
Python Programming Help Sheets

Python Programming Help Sheets

Here are 4 Help Sheets to support the programming examples up to the Dungeon Escape resource. They cover: Help Sheet 1 - Print, Variables, Maths & Input Help Sheet 2 - If, For, While & Random Help Sheet 3 - Array, Modulus, Increment Help Sheet 4 - Functions If you find the resources useful, please leave a review to help others find it. If you find it really useful, please consider purchasing the Dungeon Escape resource to help support all the FREE ones. HackDragn
hackdragn
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
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
[GCSE+ IGCSE] End of Unit/topic Assessments for Computer Science

[GCSE+ IGCSE] End of Unit/topic Assessments for Computer Science

SET 1 of a few similar uploads 7 tests for different units Binary, Algorithms and Programming Each is separate with at least two for each unit. I use these as Part of my Y9 Computer Science course which leads students nicely into IGCSE Computer Science and GCSE Computer Science Basic Computer systems covering Hardware, ROM, Input devices etc Algorithms covering design of algorithms with pseudocode, flow charts etc and some trace tables Binary test, covering all areas except addition shifts and hex Programming tests covering conditonal loops, complex conditions, selection, repetition, inputs.
PaperAirplane
Beginning Python Programming – Dungeon Escape

Beginning Python Programming – Dungeon Escape

This is designed to be used after the Beginning Python Programming examples. The price helps support 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
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
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
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
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
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