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
File Appender
Develop a program that appends user input to an existing text file.
File Writer
Create a program that writes user input to a text file.
Product Catalog
Write a program that asks the user for a product code, description, and price, then saves the data in a serial file.
Quote of the Day
Write a program that outputs a "quote of the day" stored in a text file.
Character Counter
Implement a program that counts the number of characters in a given text file.
Random Quote Generator
Enhance the previous program to output a random quote from a file containing multiple quotes.
Simple Quiz Game
Write a program that reads questions and answers from a text file and quizzes the user. Keep track of the score and outp
Youth Club Register File
Open a file in write mode, save a numbered name on each line until the user finishes, then close it.
Score File Writer
Write user data to a text file using the with statement.
File Reader & Display
Read and display contents of a text file using readline() and readlines().
CSV Data Processor
Read CSV data from a file, split by commas, and process the records.
High Score Table
Append new scores to a file and read back the full high score table.
Stock File Updater
Read stock data from a file, update quantities, and write back.
Log File Analyser
Read and analyse a log file line by line, extracting specific data.