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