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.
☰ Browse by Topic
Arithmetic
Mathematical operations, calculations, and using the random module.
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
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
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
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
Simple Sum Calculator
Write a program that asks the user for two whole numbers (integers), adds them together, and displays the result in the
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
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
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
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
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
Circle Circumference Calculator
Create a program that asks for the radius of a circle and calculates and prints the circumference.
Movie Duration in Hours
Write a program that converts a movie duration from minutes to hours and minutes.
Price with Tax Calculator
Develop a program that calculates the total price of an item after adding a sales tax percentage.
Warehouse Box Packer
Use integer division and modulus to calculate boxes needed and leftover items.
VAT Price Calculator
Calculate VAT and total price using real-world percentage formula.
Random Dice Roller
Simulate dice rolls using random.randint() and calculate totals.
Speed Distance Time Calculator
Calculate speed, distance, or time using the SDT triangle formula.
Carpet Area Calculator
Calculate carpet area and cost using real-world measurements and rounding.
Time Converter
Convert seconds into hours, minutes, and seconds using integer division and modulus.
Electricity Bill Estimator
Calculate electricity costs using real-world tariff rates and order of operations.
Random PIN Generator
Generate a random PIN using random.randint() and string concatenation.