Python Programming Challenges

Python Programming Challenges

145 ready to use Python programming challenges. SUITABLE FOR KS3 and GCSE STUDENTS. ALSO AN IDEAL COLLECTION FOR A NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. These challenges help reinforce your teaching and give pupils a chance to independently practice their Python programming skills. Includes easy to photocopy challenges, helpful tips of example code they can use to solve the challenges and suggested solutions. In this resources 145 challenges covering: - input, - print, - strings, - integers, - arithmetic operators, - basic maths operators, - if..else and if...elif..else, - for loops, - while loops, - random, - tuples, - lists, - dictionaries - use a turtle in Python - 2D arrays, - 2D lists, - 2D directories, -writing to and reading from an external text file - writing to and reading from an external .csv file - Using functions - Creating a GUI using the TKinter library - Using SQLite 3 with Python These challenges are suitable for KS3 computing and GCSE computer science classes who need to practice Python and complete some independent challenges of key skills. Please read the description of each section carefully as some require knowledge of earlier units before they can be completed. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Rubber Duck Debugging

Rubber Duck Debugging

How can a rubber duck help you be a better programmer? How can they possibly have a place in our classrooms? What is rubber duck debugging? When I first heard about this strange phenomenon, I was a little sceptical. Is this just another gimmick? Is there a surplus of rubber ducks that need repurposing? No, apparently this is a recognised programming technique that really works. What do you do? You need enough rubber ducks so that each pupil has their own duck. Amazon presently have them on sale of 10 for £1.56 which is just over 15p per duck and even without a spreadsheet I can work out, that’s cheap. Run through the presentation with them, give them the 3 Python programs to practice with and watch as your programming classes learn how to solve many of their programming problems without having to rely on you! If you are having trouble finding non-squeaky ducks you can either print out an image of the duck to be blue-tacked to the corner of their screen for everyone, or try the squeaky ducks but tell them, if there is an excessive amount of squeaking they will have their duck taken away and given a "flat duck" instead.
nwilkin
MORE Python Challenges - If statements

MORE Python Challenges - If statements

Includes a handout giving example code and 6 NEW challenges to try out. Python files also included to allow you to demonstrate one possible answer for each challenge to your class. Pupils will use the following programming features to complete the challenges: • input • print • integers and strings • basic mathematical functions (+, -, *, / and %) • basic if statements including if...else and if…elif…else statements • nested if statements Ideal for a NEA resource bank or to use for starter or plenary activities or use them for homework tasks. Easy to use and integrate into your lessons and handy to have around for pupils who finish other challenges early and need something to do. For more high-quality, ready to use computing and ICT resources visit www.nicholawilkin.com
nwilkin
MORE Python Challenges - The Basics

MORE Python Challenges - The Basics

Includes a handout giving example code and 7 NEW challenges to try out. Python files also included to allow you to demonstrate one possible answer for each challenge to your class. Pupils will use the following programming features to complete the challenges: • input • print • line breaks • integer and floating-point numbers • basic mathematical functions (+, -, *, / and //) Ideal for a NEA resource bank or to use for starter or plenary activities or use them for homework tasks. Easy to use and integrate into your lessons and handy to have around for pupils who finish other challenges early and need something to do. For more high-quality, ready to use computing and ICT resources visit www.nicholawilkin.com
nwilkin
Python Tuples, Lists and Dictionaries

Python Tuples, Lists and Dictionaries

A useful single document to help teach pupils (and teachers) about Tuples, Lists and Dictionaries in Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 11 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python 2D Lists and Dictionaries

Python 2D Lists and Dictionaries

A useful single document to help teach pupils (and teachers) about 2D Arrays, 2D Lists and 2D Directories in Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 9 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python writing to and reading from  external CSV files

Python writing to and reading from external CSV files

A useful single document to help teach pupils (and teachers) about writing to and reading from a .csv file using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 7 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python More String Manipulation

Python More String Manipulation

A useful single document to help teach pupils (and teachers) about String Manipulation in Python. This handout helps pupils and teacher brush up on your Python skills and works well as a handy reference guide. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 8 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
More Lists with Python (Quick Challenges)

More Lists with Python (Quick Challenges)

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. Includes a ready to use handout to give to your pupils containing 7 challenges and a separate python file for each challenge containing a suggested solution. In this resources are some quick, simple challenges using lists. They build on previous knowledge of using for and while loops and if statement as they start to make more complex programs. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python Numeric Arrays

Python Numeric Arrays

A useful single document to help teach pupils (and teachers) about One-Dimensional Arrays in Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 8 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python Programming Challenges

Python Programming Challenges

145 ready to use Python programming challenges. SUITABLE FOR KS3 and GCSE STUDENTS. ALSO AN IDEAL COLLECTION FOR A NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. These challenges help reinforce your teaching and give pupils a chance to independently practice their Python programming skills. Includes easy to photocopy challenges, helpful tips of example code they can use to solve the challenges and suggested solutions. In this resources 145 challenges covering: - input, - print, - strings, - integers, - arithmetic operators, - basic maths operators, - if..else and if...elif..else, - for loops, - while loops, - random, - tuples, - lists, - dictionaries - use a turtle in Python - 2D arrays, - 2D lists, - 2D directories, -writing to and reading from an external text file - writing to and reading from an external .csv file - Using functions - Creating a GUI using the TKinter library - Using SQLite 3 with Python These challenges are suitable for KS3 computing and GCSE computer science classes who need to practice Python and complete some independent challenges of key skills. Please read the description of each section carefully as some require knowledge of earlier units before they can be completed. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python Basic Challenges

Python Basic Challenges

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 11 quick, simple challenges covering input, print, strings, integers and some simple arithmetic operators. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python If Statements

Python If Statements

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 8 quick, simple challenges covering if, if…else and elif challenges. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python For Loops

Python For Loops

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 10 quick, simple challenges covering basic “for” loops and nesting for loops with if statements. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python Turtle

Python Turtle

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 8 quick, simple challenges using the turtle in Python. Useful for students to recap the for loop. They will need to use the random.choice function for one of the challenges. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python Strings

Python Strings

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 7 quick, simple challenges using strings. They change case, remove extra spaces, join strings together, find the length of a string and slice strings. They also use strings in an if statement. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python While Loops

Python While Loops

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 7 quick, simple challenges covering basic “while” loops and nesting while loops with if statements. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python functions

Python functions

A useful single document to help teach pupils (and teachers) about using Functions in Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 6 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. From my experience in teaching Python and other programming languages, I feel it works best when pupils only learn about using functions when they are starting to create more advanced programs that require them. For this reason, this document does assume a lot of previous confidence with using Python's basic programming structure before they tackle this section. If you are a teacher who likes to introduce functions early on in the pupils programming experience, then this document will not work in your classroom as it assumes pupils have a confidence with the basic programming skills already in order to complete the challenges. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python Maths

Python Maths

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 8 quick, simple challenges covering floating point numbers, square and square root, pi, rounding, whole number division and finding the remainder. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python writing and reading from external text files

Python writing and reading from external text files

A useful single document to help teach pupils (and teachers) about writing to and reading from a text file using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 6 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python Random Numbers and Choices

Python Random Numbers and Choices

Ready to use quick and simple Python programming challenges. These help reinforce your teaching and give pupils a chance to practice the fundamentals of using Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. In this resources are 8 quick, simple challenges using “randint” and “random.choice” and using these with loops and if statements. Suitable for KS3 computing and GCSE computer science classes who are needed to practice the basics of Python before they progress to more challenging techniques. For more resources including complete units of work visit www.nicholawilkin.com
nwilkin
Python creating a GUI with TKinter - Part 1

Python creating a GUI with TKinter - Part 1

A useful single document to help teach pupils (and teachers) about creating a GUI (Graphical User Interface) using the TKinter library in Python. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This guide gives you an explanation about the theory, it then gives you examples of the code accompanied with a brief explanation about what each of these pieces of code do. There are a number of challenges to allow pupils to try out these skills and finally, screen shots of the possible answers are given. We have also included the original Python files to allow you to run the programs for the possible answers and see how the programs work. Includes 9 challenges. The challenges do assume the pupils have an understanding of the basics of Python including variables, if statements, for and while loops saving to and reading from a .csv file and using functions. For more lessons and complete units of work visit www.nicholawilkin.com.
nwilkin
Python Passwords Chunky Challenge

Python Passwords Chunky Challenge

A larger challenge which allows pupils to test their skills in Python. This is a challenge they can get their teeth into. SUITABLE FOR A STUDENT’S NON-EXAM ASSESSMENT (NEA) RESOURCE BANK. This challenge requires the pupils to create a program that will store and manage a list of user IDs and passwords. It includes a handout which explains the challenge to the pupils and outlines possible problems they will have to overcome in their program. The skills the pupils will need to be familiar with in order to complete this challenge are: • Input and display data • Lists • If statements • Loops (while and for) • Functions • Saving to and reading from a .csv file This program should take at least a couple of lessons to complete and for pupils who have not completed it in the time available they could complete it for homework. It can easily be extended into a larger project if you want to include a class discussion and time for planning using computational thinking skills such as flow charts ad pseudo-code (although the answers for these are not included). This resource also includes a Python file containing one possible answer. For high-quality complete units of work which are suitable for non-specialist teachers visit www.nicholawilkin.com.
nwilkin