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:

Data Structures

Stacks, queues, and how to implement them in Python.

MediumData Structures
Customer Service Queue
Simulate a customer service center where customers are served in the order they arrive. Implement a queue to manage the
MediumData Structures
Print Queue Manager
A printer processes print jobs in the order they are received. Write a program that simulates a print queue where jobs a
MediumData Structures
Task Scheduler
Write a program that simulates a simple task scheduler using a queue. Tasks are added to the queue and executed in the o
HardData Structures
Circular Queue Simulation
Implement a circular queue where the queue has a fixed size, and when it reaches the end, it wraps around to the beginni
MediumData Structures
Browser Back Button
Simulate a browser's back button using a stack. As the user visits new pages, add them to the stack. The user can then "
MediumData Structures
Parentheses Balancer
Write a program that checks if a string of parentheses is balanced using a stack. The program should return true if the
MediumData Structures
Reverse a String
Write a program to reverse a string using a stack. The user should input a string, and the program should output the str
MediumData Structures
Undo Feature Simulation
A text editor uses a stack to implement the "undo" feature. Write a program that allows the user to enter text and then
HardData Structures
Stack-Based Calculator
Create a stack-based calculator that evaluates postfix expressions (e.g., "3 4 + 2 *"). The program should use a stack t
MediumData Structures
Stack Push and Pop
Push a value onto a stack, pop the top off, and report what was popped and the new top.