Python Programming Challenges

292 free challenges for GCSE Computer Science students. Perfect for OCR and AQA students looking to practise Python programming, or anyone who wants to sharpen their coding skills.

๐Ÿ“ Edexcel students? Practise Paper 2 challenges here
☰ Browse by Topic
Difficulty:

Arithmetic

Mathematical operations, calculations, and using the random module.

EasyArithmetic
Cardboard Box Volume Challenge
Write a program that asks the user for the length, width, and height of a cardboard box in centimetres (as decimals), th
EasyArithmetic
Circle Measurements Challenge
Write a program that asks the user for the radius of a circle as a number, then calculates and displays the diameter, ar
EasyArithmetic
Height & Weight Converter
Write a program that asks the user for their height in inches and their weight in pounds (both as decimals), then conver
EasyArithmetic
Simple Age Calculator
Write a program that asks the user for their birth year as a whole number, then calculates their age by subtracting it f
EasyArithmetic
Simple Sum Calculator
Write a program that asks the user for two whole numbers (integers), adds them together, and displays the result in the
EasyArithmetic
Teddy Bear Factory Wages
Write a program that asks for the number of hours a worker has worked (as a decimal) and the number of teddy bears they
MediumArithmetic
Exponent Calculator
Write a program that asks the user for a base number (which can be a decimal) and an exponent (as a whole number), then
MediumArithmetic
Simple Interest Calculator
Write a program that asks the user for a principal amount in pounds, an annual interest rate as a percentage, and a time
HardArithmetic
Quadratic Equation Solver
Write a program that solves quadratic equations in the form axยฒ + bx + c = 0. Ask the user to enter the three coefficien
MediumArithmetic
Exact Division Checker
Write a program that asks the user for two numbers and checks whether they are exactly divisible. If not, return the rem
MediumArithmetic
Circle Circumference Calculator
Create a program that asks for the radius of a circle and calculates and prints the circumference.
MediumArithmetic
Movie Duration in Hours
Write a program that converts a movie duration from minutes to hours and minutes.
MediumArithmetic
Price with Tax Calculator
Develop a program that calculates the total price of an item after adding a sales tax percentage.
MediumArithmetic
Warehouse Box Packer
Use integer division and modulus to calculate boxes needed and leftover items.
MediumArithmetic
VAT Price Calculator
Calculate VAT and total price using real-world percentage formula.
EasyArithmetic
Random Dice Roller
Simulate dice rolls using random.randint() and calculate totals.
MediumArithmetic
Speed Distance Time Calculator
Calculate speed, distance, or time using the SDT triangle formula.
MediumArithmetic
Carpet Area Calculator
Calculate carpet area and cost using real-world measurements and rounding.
MediumArithmetic
Time Converter
Convert seconds into hours, minutes, and seconds using integer division and modulus.
HardArithmetic
Electricity Bill Estimator
Calculate electricity costs using real-world tariff rates and order of operations.
MediumArithmetic
Random PIN Generator
Generate a random PIN using random.randint() and string concatenation.