4 ms·
You can avoid getting bogged down by learning a limited subset of a language, though. e.g. in Python you could teach most algorithms with just conditionals and
by sideshowb 6y ago
You can avoid getting bogged down by learning a limited subset of a language, though. e.g. in Python you could teach most algorithms with just conditionals and functions, and keep things pure functional using only tuples for storage. Introduce assignment, lists and loops whenever it suits you.
- sideshowb 6y agoCoincidentally well timed - the new PEP on pattern matching would be great to include in the limited subset for teaching: https://www.python.org/dev/peps/pep-0636/ https://www.python.org/dev/peps/pep-0636/ The above tutorial is based on user input but to my mind this mechanism seems equally good for teaching recursion on data structures as you would in say, ML.