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:

Selection

Making decisions with if, elif, and else statements.

Never done this before? Learn it first →

HardSelection
Month Days Finder
Write a program that lets the user enter a month number (1-12) and displays the month name along with the number of days
EasySelection
Positive or Negative Number
Write a program that determines if a given number is positive, negative, or zero.
MediumSelection
Maximum Number
Write a program that finds the maximum of three numbers.
MediumSelection
Minimum Number
Implement a program that finds the minimum of three numbers.
HardSelection
Vowel Counter Part 2
Write a program that prompts the user to enter a word or phrase and counts the number of vowels (a, e, i, o, u) present
EasySelection
River Level Flood Check
Compare a river reading against a flood level and print the right warning.
EasySelection
Car Park Height Barrier
Use if and else so a driver always gets exactly one message at the barrier.
EasySelection
Wind Speed Band
Sort a wind speed into one of four bands using an elif chain.
EasySelection
Theme Park Ride Check
Combine three answers into one condition using and, or and not.
EasySelection
Swimming Pool Entry
Put one if inside another so the second question is only ever asked when it makes sense.
EasySelection
Theme Park Ride Checker
Use if/else to check height requirements for a theme park ride.
MediumSelection
Cinema Age Rating Check
Use if/elif/else to determine which films a customer can watch based on age.
MediumSelection
Delivery Cost Calculator
Calculate delivery costs using nested selection based on weight and distance.
MediumSelection
Login Validator
Validate username and password using AND operator and selection.
MediumSelection
Grade Boundary Checker
Assign grades using if/elif/else with boundary conditions.
HardSelection
Triangle Type Classifier
Classify triangles using multiple conditions with AND/OR operators.
HardSelection
Parking Charge Calculator
Calculate parking charges with multiple conditions including day of week and duration.
HardSelection
Leap Year Checker
Determine leap years using nested conditions with AND/OR/NOT.
MediumSelection
Rock Paper Scissors
Compare player and computer choices using selection and random.
HardSelection
Tax Bracket Calculator
Calculate income tax using tiered brackets with multiple elif conditions.