This book presents five beginner to intermediate level projects inspired by real world use cases:
- Enhance your CLI experience with a custom Python calculator
- Analyzing poll data from a Reddit comment thread
- Finding typos in plain text and Markdown files
- Creating a GUI for evaluating multiple choice questions
- Square Tic Tac Toe — creating a GUI game with AI
To test your understanding and to make it more interesting, you'll also be presented with exercises at the end of each project. Resources for further exploration are also mentioned throughout the book. Visit https://youtu.be/5whwiiURWS8 for a short video about the book.
See Version_changes.md to keep track of changes made to the book.
You can purchase the pdf/epub versions of the book using these links:
You can also get the book as part of these bundles:
- The Indie Python Extravaganza bundle from https://leanpub.com/b/theindiepythonextravaganza
- Includes Python 101, Pydon'ts, Python re(gex)?, Practice Python Projects and Clean Architectures in Python
- Learn by example Python bundle from https://leanpub.com/b/python-bundle or https://learnbyexample.gumroad.com/l/python-bundle
- All books bundle bundle from https://learnbyexample.gumroad.com/l/all-books
- Includes all my programming books
See https://learnbyexample.github.io/books/ for list of other books
For a preview of the book, see sample chapters
The book can also be viewed as a single markdown file in this repo. See my blogpost on generating pdf/epub from markdown using pandoc if you are interested in the ebook creation process.
For web version of the book, visit https://learnbyexample.github.io/practice_python_projects/
Your Practice Python Projects book is really helping me to reinforce my knowledge and mastery of Python as I'm learning.
Please open an issue if you spot any typo/errors.
I'd also highly appreciate your feedback about the book.
Twitter: https://twitter.com/learn_byexample
- Python documentation — manuals and tutorials
- /r/learnpython/ and /r/Python/ — helpful forums for Python programmers
- stackoverflow and unix.stackexchange — for getting answers on Python, Bash and other pertinent questions
- tex.stackexchange — for help on pandoc and
tex
related questions - Cover image:
- Programming illustration by Vijay Verma
- command-window, chart, game, network, question and snake icons from svgrepo.com
- LibreOffice Draw — background and title/author text
- Warning and Info icons by Amada44
- pngquant and svgcleaner for optimizing images
- Inkscape for favicon
- mdBook — for web version of the book
- mdBook-pagetoc — for adding table of contents for each page
- minify-html — for minifying html files
The book is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
The code snippets are licensed under MIT, see LICENSE file