We couldn’t find a perfect book for this course*, so we decided to write one! The result is called, quite creatively, Computer Programming for Lawyers. Perhaps the very best thing about the book is the striking ASCII Art Jonathan Frankle created, freehand, for the cover:
Part I of the book introduces the fundamentals of Python in legal practice, while Part II (mostly yet to be written) covers slightly more advanced Python topics.
The chapters of Part I are:
- What is Programming?
- Installing and Using Python
- Expressions and Evaluation
- Programming Basics
- While Loops
- Dictionaries and Datastructures
- Functions and Modules
- Text Files
- JSON Files
- File Management
Here is Chapter 2 of the book, “What is Programming?” which introduces (in the lightest way imaginable) algorithmic thinking to lawyers. One of our colleagues uses this chapter to help her students understand “algorithms” better.
We’re talking to a publisher about bringing the book to market, so it might be in a bookstore near you before too long. We’re trying to negotiate some sort of creative commons or open source license, at least for the heart of the book, and we’ll update this page as we learn more.
If you’re an educator thinking about adopting this class, email us, and we’ll be happy to share a copy of the manuscript with you. We’re not quite ready, however, to share it more broadly than that.
* The first year we taught this course, we used a fantastic book by Al Sweigart called Automate the Boring Stuff with Python. The full content of the book is available for free at that link.