Home

Awesome

Introduction

This is the code repository for the Manning Publications book, Tiny Python Projects, by Ken Youens-Clark:

https://www.manning.com/books/tiny-python-projects?a_aid=youens&a_bid=b6485d52

http://tinypythonprojects.com/

There is a directory for each chapter of the book. Each directory contains a test.py program you can use with pytest to check that you have written the program correctly. I have included a short README to describe each exercise. If you have problems writing code, see my book for the skills you need.

Testing is integral to writing and solving these challenges as well as to the methodology of the book. I advocate for "test-driven development" where you write tests before you write code. The tests should define what it means for a program to be correct, and then you write programs to satisfy the tests. In this project, I've written all the tests for you, but I also encourage you to write your own functions and tests. You should run the test suite after every change to your program to ensure you are making progress!

Videos

I made videos for each chapter on my YouTube channel:

https://www.youtube.com/user/kyclark

Here are the videos I've completed so far:

Forking GitHub repo

If you like, you can use the GitHub interface to fork this repository into your own account. Then do git clone of your repository to get a local copy.

Copyright

© Ken Youens-Clark 2019-2024