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
OOP
Object-oriented programming - classes, objects, and methods.
Book Management System
Create a class Book with attributes title, author, and pages. Write the constructor for this class and a method isLong()
Employee Salary Management
Design a class Employee with attributes name, salary, and position. Write the constructor and a method applyRaise() that
Online Shopping Cart
Write a class ShoppingCart with attributes items (a list) and totalPrice. Include a method addItem() to add an item to t
Prime Number Checker Class
Design a class called PrimeChecker with a method isPrime() that checks if a number is prime. Write the constructor and i
Object-Oriented Ticketing System
Create a class Ticket with attributes event, price, and seat. Write a method applyDiscount() that reduces the ticket pri