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
Recursion
Functions that call themselves to solve problems.
Recursive Binary Search to Iterative
Given the pseudocode for a binary search using recursion, rewrite it to perform the same task iteratively.
Recursive Factorial to Iterative
Given the following pseudocode for calculating a factorial using recursion, rewrite it to use an iterative approach.
Recursive Fibonacci to Iterative
The following pseudocode generates the nth Fibonacci number using recursion. Rewrite it using an iterative approach inst
Recursive Sum to Iterative
Convert the following recursive pseudocode that sums the numbers in an array into an iterative version.
Recursive Greatest Common Divisor
The following pseudocode calculates the greatest common divisor (GCD) of two numbers using recursion. Rewrite this algor