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:

Mixed Practice

Exam-style challenges that combine multiple programming concepts.

Never done this before? Learn it first →

EasyMixed Practice
Bookstore Discount Calculator
Write a program for a bookstore that offers a 10% discount on orders over ยฃ50. Allow the user to input the total order a
EasyMixed Practice
Class Attendance Checker
Write a program that takes a list of student attendance (represented as 'P' for present and 'A' for absent) and outputs
EasyMixed Practice
Classroom Seating Plan
A teacher wants to create a seating plan for a classroom. Write a program that stores the names of 6 students in an arra
EasyMixed Practice
Grocery Store Inventory
FreshMart is a grocery store that needs a program to manage its inventory. Write a program that stores the names and pri
EasyMixed Practice
Inventory Stock Checker
Write a program to calculate the total stock of items in a 2D array where each row represents an item and the columns re
EasyMixed Practice
Library Book Loan System
A local library needs a program to track books on loan. Write a program that stores the titles of 5 books in an array. A
EasyMixed Practice
Lucky Draw
A school is running a lucky draw where students pick a random number between 1 and 50. Write a program that generates a
EasyMixed Practice
Random Workout Generator
FitLife wants to create a random workout generator. Write a program that stores 5 different exercises in an array. The p
EasyMixed Practice
Shopping Cart Total
Write a program to calculate the total cost of items in a shopping cart. The cart is represented as a list of tuples, ea
EasyMixed Practice
Student Grades Calculator
Write a program for a teacher to input 5 student names and their corresponding grades. Store these in two arrays and the
EasyMixed Practice
Theme Park Visitor Counter
FunLand theme park needs a program to count visitors. Write a program that asks the user for the number of visitors each
MediumMixed Practice
Airline Ticket Booking
Part 1: Write a program to calculate the cost of booking airline tickets based on the number of tickets and the class (E
MediumMixed Practice
Charity Donation Tracker
CodeRelief is tracking donations for their charity. Write a program that allows the user to enter the names of 10 donors
MediumMixed Practice
Charity Marathon Sponsor
Write a program for a charity marathon that tracks sponsors. The user should input the names of sponsors and the amount
MediumMixed Practice
Coffee Shop Loyalty Card
Coffee Corner offers a loyalty card where customers get a free drink after buying 10 drinks. Write a program that tracks
MediumMixed Practice
Concert Ticket Allocation
RockFest is allocating concert tickets. Write a program that stores the names of 5 ticket holders in an array. If someon
MediumMixed Practice
Delivery Time Estimator
A delivery company wants a program that estimates delivery times based on distance. The user should input the delivery d
MediumMixed Practice
Dinner Party Planner
"Gourmet Delights" catering service wants to streamline their event planning process. Write a function that takes the nu
MediumMixed Practice
Emergency Contact Information
A school needs a program to manage emergency contact information. Write a program that allows the user to input the name
MediumMixed Practice
Gym Membership Manager
Part 1: Create a program to manage gym memberships. Input the duration (in months) and membership type (Standard, Premiu
MediumMixed Practice
Hotel Room Availability Checker
Write a program that allows a hotel manager to enter the availability of 10 rooms in an array (available or booked). The
MediumMixed Practice
Movie Ticket Price Calculator
Write a program for a cinema that calculates ticket prices. The user should enter the number of adult and child tickets.
MediumMixed Practice
Personal Finance Manager
"SmartSaver" finance app wants to provide users with insights into their spending habits. Develop a program that reads t
MediumMixed Practice
Restaurant Bill Splitter
"Foodie Friends" group wants to simplify splitting the bill when dining out. Write a program that takes the total bill a
MediumMixed Practice
Restaurant Order System
Write a program that allows a waiter to take orders at a restaurant. The user should input the names of dishes ordered b
MediumMixed Practice
School Grade Tracker
"SmartEd" school needs a system to track students' grades. Develop a program that reads student grades from a text file,
MediumMixed Practice
Sports Event Scheduler
Part 1: Write a program to schedule sports events. Input the number of teams and the type of event (League, Knockout). L
MediumMixed Practice
Train Ticket Price Calculator
FastTrack is a train service. Write a program that allows the user to enter the number of stations they will travel thro
MediumMixed Practice
Travel Budget Planner
The "Wanderlust" travel agency needs a tool to help their clients plan their expenses. Create a program that takes the t
HardMixed Practice
Energy Consumption Monitor
"EcoSavvy" energy company wants to analyze customers' energy consumption patterns. Create a program that reads energy us
HardMixed Practice
Festival Budget Planner
Part 1: Write a program to plan the budget for a festival. Input the number of days, expected attendees, and the type of
HardMixed Practice
Flight Booking System
"FlyHigh" airline needs a program to manage flight bookings. Develop a system that reads flight data from a text file, a
HardMixed Practice
Inventory Management System
"SuperMart" supermarket needs an efficient way to manage their inventory. Create a program that takes the initial quanti
HardMixed Practice
Investment Portfolio Manager
"WealthBuilder" investment firm wants to track clients' investment portfolios. Create a program that reads investment da
HardMixed Practice
Online Store Order Processor
Part 1: Develop a program to process online store orders. Each order includes item price, quantity, and delivery type (S
HardMixed Practice
Tech Support Ticket System
Part 1: Write a program to manage a tech support ticket system. Each ticket has a priority (High, Medium, Low) and time
HardMixed Practice
University Course Grader
Part 1: Create a program to calculate final grades for students based on a 2D array where each row represents a student
MediumMixed Practice
Trace Table: Loop Output
Predict loop output - a key exam skill testing understanding of iteration.
MediumMixed Practice
Find the Bug: Selection Errors
Identify and fix common selection errors - tests debugging skills for exams.
HardMixed Practice
Algorithm Design: Login System
Design a complete login system from requirements - tests decomposition and algorithm design.
HardMixed Practice
Algorithm Design: Text Encryptor
Design a simple encryption algorithm combining string manipulation, iteration, and functions.
HardMixed Practice
Data Processing: Student Records
Full data processing challenge combining files, lists, functions, and analysis.
HardMixed Practice
Trace Table: Nested Loops
Trace through nested loop code - advanced exam technique for Paper 2.
HardMixed Practice
Algorithm: Finding Duplicates
Design an algorithm to find duplicates in a list - tests algorithmic thinking.
HardMixed Practice
Complete Program: Contact Book
Full program design combining all major topics - the ultimate exam preparation challenge.