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
Inputs & Outputs
The basics - getting input from users and displaying output with print().
Age Next Year
Create a program that asks the user for their age and then prints what their age will be next year.
Digital Clock Display
Write a program that outputs the current time in a digital clock format using ASCII art.
Favourite Colour Display
Ask the user for their favourite colour and then output a sentence including that colour.
Friendly Welcome Message
Write a program that displays a friendly welcome message and today's date to the user.
Inspirational Quote Output
Write a program that outputs an inspirational quote of your choice.
Name in Art Challenge
Write a program that outputs your name in stylized ASCII Art.
Personalised Welcome
Write a program that asks the user to enter their name and then outputs a welcome message with their name in it.
Greeting Message
Develop a program that asks the user's name and age and then greets them with a nice message
Sum of Two Numbers
Create a program that takes two numbers as input and prints their sum and product.
Personalised Adder
Write a program that asks the user for two numbers, adds them together, and then prints a personalised message with the
Rectangle Area and Perimeter
Ask for a width and height, then print the area and the perimeter.
Museum Opening Hours Sign
Write a program that prints a four line opening hours sign for a museum.
Train Platform Announcement
Store three pieces of information about a train and print them all on one line.
Recycling Collection Notice
Print a bin collection notice and explain every line of the program with a comment.
Pet Adoption Profile Card
Store a rescue dog's details in variables, print its profile card, then change one variable and print again.
School Trip Information Sheet
Store three trip details that must never change as constants, then print an information sheet from them.
Hotel Guest Registration
Collect and display guest details using string inputs and concatenation.
Cinema Ticket Receipt
Calculate ticket cost using type casting and formatted output.
Pet Profile Builder
Create a pet profile using multiple input types and string formatting.
Delivery Address Formatter
Format address data into a standard postal format with type conversion.
BMI Calculator
Calculate BMI from height and weight with formatted decimal output.
Temperature Converter
Convert between Celsius and Fahrenheit using arithmetic and output formatting.
Student ID Generator
Build a student ID from multiple inputs using string operations and casting.
Recipe Scaler
Scale recipe ingredients using multiplication and formatted output.