1. Resources Home
  2. Whole School
  3. Computing
  4. Algorithms and programming
  5. Python
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
Validation rules presentation

Validation rules presentation

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
Object orientated programming (OOP)

Object orientated programming (OOP)

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.
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.
hackdragn
Recursion programming technique

Recursion programming technique

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

Detailed student workbooks that EXACTLY match the AQA GCE (9-1) Computer Science (8520) specification. Each includes theory, tasks to recap the knowledge and put their new skills into practice and the answers. 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 to use as a revision aid for students. 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 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
Computing Quiz Bundle Python

Computing Quiz Bundle Python

Four Python projects that simulate game show quizzes, a maths test and snakes and ladders Includes all teaching materials, worksheets, presentations and python code solutions,
HeatonMoorDigital
Computing - Python "Pointless" Style Quiz

Computing - Python "Pointless" Style Quiz

Python programming project to develop a “Pointless” style quiz. Introduces students to coding techniques such as dictionaries, lists, conditions, iteration and programming using functions/parameters. Includes teachers presentation explaining the code and the python code solution for teachers.
HeatonMoorDigital
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
SQLite3 in Python

SQLite3 in Python

This bundle contains a worksheet and powerpoint guiding students through SQLite 3 in Python using Object Oriented methods and classes - this is therefore aimed at A Level students. Teachers should go through the Powerpoint slide by slide with their students, and then at each new stage get the students to copy and adapt the code into their own programs, so they learn how to build the class step-by-step. A comprehensive worksheet has also been provided to allow students to evidence and check their knowledge, as well as create a dictionary of all new vocab and statements. A copy of the powerpoint should be given to students.
mro2013
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
KS3 adventure game program

KS3 adventure game program

This is for Key stage 3 students. It teaches procedures and loops. Included is some file handling. The idea is a text adventure that they build themselves, but they must include file handling and loops
hdavison1
OCR J276 Computer Science Paper 2 Revision - Knowledge Organisers

OCR J276 Computer Science Paper 2 Revision - Knowledge Organisers

The new OCR Computer Science 9-1 GCSE specification (J276) has a lot of new knowledge for the students to learn. I have created these knowledge organisers for my Year 11 Computer Science students. I have tried to make them as compact as possible - trying to fit the entire topic onto one side of A4 (two at most). The students used them for their Paper 2 mock exam in December. The feedback was really positive - they found them really helpful to recap the topic and have now also seen how they can be used to help answer the exam questions. As you can probably guess they have taken me many hours to put together and I have been improving them, and correcting them as I have been using them and working with the practice questions to make them as useful as possible. This is the first time I have sold anything on TES, I have found the new spec pretty daunting - so I do hope these can help a few people. Please do give me any feedback if you think there is anything missing and I will make any necessary changes. Thanks Rachel
Raych6000
Computer Science Unit 2.1-2.6 Revision Sheets / Practice Questions

Computer Science Unit 2.1-2.6 Revision Sheets / Practice Questions

Here you will find easy to follow revision sheets which will help your students to recap the topics: -2.1 Algorithms -2.2 Programming Techniques -2.3 Robust Programs -2.4 Computational Logic -2.5 Translators & Facilities of Languages 2.6 Data Representation The revision sheets include exam questions at the end of each topic to help the students recap their revision and apply it to a question. Enjoy!
msmarwaha
GCSE Python Revision Booklet (starter pack)

GCSE Python Revision Booklet (starter pack)

A set of revision 6 sheets summarising the key aspects of Python. Helps to prepare students for the NEA and could be added to your resource bank: - Python Basics IF statements Arithmetic operations FOR loops WHILE loops Random Click here for mega pack https://www.tes.com/teaching-resource/gcse-python-revision-booklet-mega-pack-11715881
chrdol72
GCSE Computer Science Knowledge Organiser - Python Programming

GCSE Computer Science Knowledge Organiser - Python Programming

A knowledge organiser for the GCSE Computer Science topic of Python Programming. Contains a bank of relevant keywords along with examples of programming and key knowledge. This should be a great summary of basic python programming on a single sheet. There will be an advanced python organiser available soon. These are great for student revision, or as teaching aids for staff to be aware of the breadth of the module. Thanks, Toby Watkins
MrWatkins123
Drawing a Rainbow Using Python

Drawing a Rainbow Using Python

Students should already be familiar with the commands; circle(), extent, pensize and pencolor. I challenged my KS3 class to draw a rainbow using only these commands. They were asked if they thought that Python would recognise the official rainbow colours. Python does recognise Red, Orange, Yellow, Green, Blue, Indigo and Violet! This is the code to draw the rainbow shown. It can be shared with the class after they have attempted the challenge or as a fun activity. The students can improve the code by using the penup and pendown commands. Enjoy!
missmunchie