64 Python programming exercise ideas (Beginners to advanced)

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
Loops (while and for)
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.

Save for later
  • A_Christmas_Carol.txt
  • votes.txt
  • Code-support-files.zip
  • Python-Programming-ideas.docx
  • Python-Programming-ideas.pdf

About this resource


Created: May 18, 2018

Updated: Jan 21, 2019

txt, 808 bytes


txt, 182 bytes


zip, 2 KB


Report a problem

Tes Paid Licence

How can I re-use this?