A few small Python projects around key concepts of the language.

1) data_structures

T9_predictive_text.py

Implements T9, which was used pre-smartphone to predict words while typing with 9 numbers.

Scripts needed:

  • T9_predictive_text.py
  • helper.py
  • ngrams-10.txt

How to use:
python3.9 T9_predictive_text.py

2) functional_programming

memoize.py

A decorator to cache the results of a function.

runtime_type_checker.py

A decorator factory to check whether supplied function arguments and results match annotations.

3) oop

online_shopping_classes.py

Classes to do online shopping.

4) file_io

routes.py

Find routes between airports.

See also: Using Neural Networks and transfer learning to predict kingfisher species:

https://github.com/mastoffel/kingfisher_classifier