1. Resources Home
  2. Primary
  3. Computing
  4. Algorithms and programming
  5. Python
Python - Getting Started

Python - Getting Started

4 documents that include example Python code, tasks and programming challenges to complete to help students, NQTs and non-specialist teachers to learn the following Python programming skills: Input and print statements If statements For loops While loops Perfect for classroom activities, homework tasks and self-study. Answers are included.
nwilkin
Python For Loop Practical Challenges

Python For Loop Practical Challenges

A great 2 page handout for your pupils to practice For Loops in Python . Includes example code, a task to work out the output from the range function, a task to correct code and 4 practical challenges for them to practice writing for loops in Python code. It even includes a PDF containing the answers. Great for homework tasks, classroom activities or self-study.
nwilkin
Python Basics Practical Challenges

Python Basics Practical Challenges

A great 2 page handout for your pupils to practice Python basics. Includes example code, a tasks to read code, a task to correct code and 4 practical challenges for them to practice writing Python code. It even includes a PDF containing the answers. Great for homework tasks, classroom activities or self-study.
nwilkin
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
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
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
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
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
Computer Science Bundle

Computer Science Bundle

All of my Computer Science resources as I am soon to be moving to another subject.
MZCS
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
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
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
tkinterTutor - learn how to develop  fully functioning tkinter windows

tkinterTutor - learn how to develop fully functioning tkinter windows

I wrote tkinterTutor for my Python class who were struggling to get tkinter working properly. Whilst tkinter is an excellent GUI (Graphical User Interface) module for developing Windows-based screens in Python, it can be a bit finicky and time-consuming. tkinterTutor consists of a 37-page PDF document that demonstrates how to use common tkinter widgets, and 19 fully-functioning stand-alone tkinter programs. The PDF document links to the tkinter programs so that you can quickly open the programs and see how exactly to use each widget. tkinter’s geometry managers (pack, grid, and place) are also covered; how to use each one, when to each one, etc. Here’s the table of contents… Table of Contents Welcome to tkinterTutor 1 Introduction to tkinterTutor: 3 Basic Structure: 5 Frame with Label: 6 tkinter Widget Attributes: 8 Generic Fonts: 9 tkinter Geometry Managers: 10 The Pack Geometry Manager: 11 The Grid Geometry Manager: 12 The Place Geometry Manager: 14 Frame with Image: 15 Frame with Entry Widget: 17 Putting It All Together: 20 Fully Functioning tkinter Screen: 21 Menus and Sub-Menus: 22 Scrolling Text Box: 25 Screen Messages: 27 Message Widget: 28 Read a Text File: 30 Check Buttons: 31 Radio Button: 33 ComboBox: 34 LabelFrame: 35 Listbox: 36 Spinbox: 37 Sliding Bar: 38
mikem001
Python For Loop

Python For Loop

Just a simple lesson that goes through a “for” loop in python. Shows the main syntax, how to define the number of iterations. Bulk of the activity is using turtle to draw various shapes, it’s an easy way to show how loop reduce coding. Used this in few year 7 classes, it’s gone over well as its more visual, challenge is easily increased by changing the shapes, from a square to a house. One pupil even tried to create a multi-coloured honeycomb pattern to fill out the window. I’ve included a txt file with python code of potential solutions, just needs to be copy and pasted into python. -KS3 -Quick/Easy to scale for differentiation -provides context for iteration
bh06yk
GCSE 9-1 50 Pseudo code or Programming challenges

GCSE 9-1 50 Pseudo code or Programming challenges

50 programming or pseudo code challenges- programs which could be given as an extension activity or out-of-class assignment to stretch and challenge learners of all key stages- as part of practicing selection and iteration and other programming techniques. These could be done using any programming language of your choice. These could be beneficial to prepare students for exams related to Algorithms and programming techniques. These can be used for KS3 and even A levels. Please send a message if you need solutions. All the best.
sekhon1976
Python Programming - I CAN Statements

Python Programming - I CAN Statements

These I Can statements are perfect to guide your students to develop the necessary skills when learning to code/program using Python. The teacher or the student can tick off each I Can statement once they have demonstrated evidence for them. I Can statements fall under the following 4 categories: • Criteria 1: Planning • Criteria 2: Skills Development • Criteria 3: Explanation of Code • Criteria 4: Efficiency of Code
balsamgr8
Python Programming–Jumbled Code Task Cards (Beginner) Coding Unplugged Activity

Python Programming–Jumbled Code Task Cards (Beginner) Coding Unplugged Activity

This resource is a brilliant way to get students to begin coding in Python! A set of 12 different Jumbled Code Python Task Cards which can be cut out, laminated and distributed to students. Instructions: Students need to look at the code and read the English statements (pseudo code) in order to put the jumbled python code in the correct order. These have been brilliant in my classroom and I have used them for starter and review activities. I have even used these as an introduction to coding in Python. These task cards also test students understanding of the following programming concepts: 1) syntax errors 2) logical errors 3) variables 4) print() function 5) input() function 6) int() function 6) if statements 7) while loops 8) lists 9) sorting & reverse sorting data in lists. Each task card also allows you to question students further on their knowledge of Python i.e: • “why was the data type string and not integer?” • “what is the difference between the input() and print() functions?” • “why did we need to use the int() function?E • Etc… Python software can be downloaded for free from: https://www.python.org/downloads/ There are also many online platforms in which Python can be used such as codeacademy.com
balsamgr8
Computing Conference! 24th February 2018 with Ofsted! For anyone who teaches computing!

Computing Conference! 24th February 2018 with Ofsted! For anyone who teaches computing!

We are running our annual teachers' conference on the 24th February 2018. THIS IS THE FLYER. You need to book a place for £35 on eventbrite!!! The flyer gives you the link! John Nixon, Computing Lead at Ofsted is providing our keynote. This is the only conference he is scheduled to present at this year!! At the conference, you can create your own day of CPD. For beginners, intermediates and more experienced teachers of computing. For primary and secondary teachers, trainees as well as in-service and out of school educators. SEND workshops, A level workshops - all you can think of. We are even making a swarm of fireflies out of 200 micro bits and have drones too! 9:10 registration, 9:45 Ofsted Keynote, 10:20 1st workshop, 4:15 finishes Gladesmore Community School, South Tottenham, N15 6BF (Victoria line) Just £35 to cover lunch/admin Select from 30 HANDS-ON workshops Unplugged, Scratch, Minecraft, Python, HTML, C#, MicroBit and more Sessions include: Advanced Python - Sue Sentance, Stride - Michael Kölling, Machine Learning - Paul Curzon, Primary Assessment - Phil Bagge, Minecraft - Simon Johnson (CLCSimon), NEWLY ADDED Secondary - Craig ‘n’ Dave Sign up here https://tinyurl.com/CASLondon-Conf-2018 #casconf2018 CAS London​ coordinates Computing At School activities in London. CAS London is run by King’s College London and Queen Mary University of London. http://www.computingatschool.org.uk/crcs/london @cas_london_crc email caslondon@computingatschool.org.uk
jlisaw8
Minecraft Pi Programming

Minecraft Pi Programming

A mixture of tasks and content linked to programming using raspberry PI, Python and Minecraft. I found this unit to be really useful and students got a lot out of it.
NextStepComputing
KS3 Python Unit of Work

KS3 Python Unit of Work

This unit of work covers python and guides the learners through this programming language it contains the following: - 64 slide powerpoint covering skills from basic python statements all the way to functions and lists. - Python Booklet - Student booklet to guide them through the topics with a mixture of different tasks to complete. - Python key Terms booklet: For students to take screenshots and build up their own revision notes. - A mixture of worksheets for specific lessons. - Programs to support specific lessons within the unit. - Programming challenges contained within the python booklet for students to complete. My team found these resources helpful to teach students the basics of python even if you are a CS teacher or not. Thanks for taking the time to look at my resources I hope it supports your students well.
NextStepComputing
Algorithms, Maths & micro:bit: 5 fun coding activities

Algorithms, Maths & micro:bit: 5 fun coding activities

5 fun activities exploring the micro:bit, mathematics, and algorithm creation in Python and JavaScript Blocks. This short activity booklet explores the use of computing in order to calculate mathematical constants and carry out advanced mathematical functions. This could be used as an introduction to algorithms or mathematics & computing. In these activities we will use Python and JavaScript Blocks to calculate Pi & e, as well as creating a function to calculate factorials. Along the way we will learn a number of key skills: - Introducing & breaking down problems and algorithms - Solving and re-arranging equations - Real-world use of computing - Introduction to mathematical constants - Coding in Python & JavaScript Blocks - Utilising key equations for geometry & shapes - Memory issues & efficiency - Coding Skills: - Variables - Loops - Conditions - Advanced mathematical functions
rlowe0008
Half a term Python debugging

Half a term Python debugging

An engaging resources which allows the learners to find errors marked with hashtags. The slides include the broken code (fixed code is on the teacher slides, separate and can also be received via email). Even if you choose not to use this for debugging exercises, it is useful for programming ideas for beginners to copy. After each script the learners are encouraged to state initial tests, actual tests, in preparation for GCSE NEA work. My learners raced up the stairs to start on these tasks, very enthusiastically. The topics include maths, strings, lists, tuples, concatenation, for loops, sub routines and appending to lists. The scripts can also be used as base scripts for other ideas. At the end of the half term of work, there is a challenge project, worded like a very watered down GCSE project. Enjoy!
hoof_hearted
Creating a multi question quiz in Python

Creating a multi question quiz in Python

Students will annotate the hand out in order to explain what each line of code does. then staff should demo the quiz with the given python file. students then plan 5 questions students then build
mylhughes1990
Programming Python VAT Activity

Programming Python VAT Activity

This resource includes 1 activity as well as a challenge. The tutorial shows students how to construct a program that calculates the VAT for a product. There is also a challenging task which asks the students to add a quantity function. This is suitable for anybody to is learning the basics of python
leonwilberforce
Teaching Coding Concepts using Python

Teaching Coding Concepts using Python

This photocopiable resource has been produced to provide KS2 and KS3 students with exciting and engaging opportunities to learn coding concepts using the Python programming language. There are enough activities for 4 to 5 lessons. Including: Algorithms Sequences Iteration (Repetition) Selection Variables The resource covers the programming aspect of the computing national curriculum. use two or more programming languages, at least one of which is textual, to solve a variety of computational problems make appropriate use of data structures [for example, lists, tables or arrays] design and develop modular programs that use procedures or functions.
edulitolearn
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").
CompuTeach
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