The Big Book of Small EK9 Programs

Adapted from Al Sweigart's The Big Book of Small Python Projects: 81 Easy Practice Programs (No Starch Press, 2021; copyright © 2021 Al Sweigart), which he makes freely available under a Creative Commons Attribution-NonCommercial-ShareAlike licence at inventwithpython.com/bigbookpython. Changes were made: each program was ported from Python to EK9 and remodelled in EK9's idioms.

Preface

The Big Book of Small EK9 Programs ports the programs of Al Sweigart's The Big Book of Small Python Projects into EK9 — fifty-five of the eighty-one so far. Each port compiles, runs, and reproduces a known input→output behaviour, so the collection is at once a completeness probe for the language, a conformance suite, and a growing set of examples of idiomatic EK9.

Where a program relies on a capability EK9 does not yet provide, that gap is recorded (see REQUIREMENTS.md) rather than papered over — the corpus is an honest map of what the language can and cannot yet express. The control-flow translations that recur in every port (EK9 has no break, continue, return statement, or null) are collected separately in the companion volume Porting to EK9.

The programs are Al Sweigart's. The Big Book of Small Python Projects: 81 Easy Practice Programs (No Starch Press, 2021; copyright © 2021 Al Sweigart) is freely available from its author under a Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA) licence at https://inventwithpython.com/bigbookpython/. The EK9 ports in this book are adaptations of his programs: changes were made, in that each was ported from Python to EK9 and remodelled in EK9's idioms. The ports are licensed under the same licence, CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/), and each port's SOURCE.md names the original program it adapts.