Solutions & Walkthroughs
Each solution introduces some new aspect of programming, or takes an existing idea further. Hopefully there's something new here for everyone, even if you've already solved the puzzles.
Is a 'space' a character?
ASCII vs Unicode
Edge cases
Looping with list comprehensions
Sub-functions
Checking expectations with assert
Colab shortcut keys
Test-driven development (TDD)
More Colab shortcut keys
Five ways to convert a float number to an int
Even more Colab shortcut keys
Type hints in function definitions
Refactoring functions
List comprehension with an if filter
Code folding
Tuple assignment & chained comparisons
More list comprehensions
Letters as numbers & the ASCII table, using chr and ord
The Accumulator Pattern
Even more list comprehensions!
Type hints & type checking
More of unit testing using assert
The dict collection type
Using an array's .count method
Using zip to get pairs of items from two lists
Using enumerate to get the loop number
Passing a 'noisy' True/False parameter to turn print messages off
Dec 12 - Christmas bits *
Dec 13 - Stables ***
Dec 14 - Sleigh ride ***
Dec 15 - 1 star *
Dec 16 - Patches ***