OCR Coding Challenges - Solutions

As a background task, I've started work on possible solutions to the OCR Coding Challenges. Remember that my solution is just one of a number of possible solutions, and I don't claim that it's necessarily the best one.

No. Link
1 Factorial Finder - Iteration
Factorial Finder - Recursion
2 Speed Tracker
3 Thief!
4 Classification
5 Fruit Machine
7 Credit Card Validator
8 Arithmetic Test*
9 Happy Numbers
10 Number Names
13 Caesar Cipher
15 Pangrams
16 Kaprekar
17 Number Table
18 Years in Range
20 Palindrome - String Slicing Palindrome - Recursion
23 Fibbing
33 Mor-se Coding
36 Triangulate
37 Fizz Buzz
38 Sing Along
41 Prime Factorisation
67 What have the Romans ever done for us?
71 Goldbach

* Some of the tasks are more open-ended and I have included similar examples from other sources, such as previous coursework tasks.

You'll notice that I tend to use lists or tuples in my code to avoid the need for multiple IFs - I explain the technique in this article, and also demonstrate how it can be used to improve a common Magic 8 Ball program here.  There is also a video on recursion, in which I explain how the factorial, palindrome and prime factorisation programs work.

If you prefer to use a local IDE, you can download these programs.  You can also download further programming examples in BASIC, JavaScript and Python.