The Invent with Python Blog

Writings from the author of Automate the Boring Stuff.

Thu 13 January 2022

Book Review: Make Python Talk

Posted by Al Sweigart in python   

Mark H. Liu’s “Make Python Talk” is a solid book for anyone who wants to leverage the power of the Python programming language to add speech capabilities to their programs. The chapters cover third-party libraries for speech recognition and text-to-speech in an engaging way.

Read more...


Thu 13 January 2022

Book Review: Serious Python

Posted by Al Sweigart in python   

Serious Python by Julien Danjou is an excellent book for those who have gone through the "hello world" tutorials or those coming to Python from other programming languages, and want a book that teaches you not just how to write code, but how to write code the pythonic way.

Read more...


Thu 13 January 2022

Book Review: Tiny Python Projects

Posted by Al Sweigart in python   

Writing for an intermediate audience is hard, but Ken Youens-Clark has nailed it with Tiny Python Projects. This is a great book for those who have dabbled with a few beginner Python tutorials but still feel like they don't "get" programming. The projects in this book are short and simple; perfect for beginners who want to get experience with actual programs instead of just code snippets.

Read more...














Wed 05 June 2019

Pythonic Ways to Use Dictionaries

Posted by Al Sweigart in python   

Python dictionaries are a useful part of the language. In addition to having the ability to store keys and values, you can also use dictionary methods to manipulate those values, and you can use dictionaries to write more concise code.

Read more...



Mon 22 October 2018

A Curriculum for Python Packaging

Posted by Al Sweigart in python   

Python's packaging ecosystem contains multitudes. It can be intimidating for new Python developers to try to crack into, especially given the rapid evolution of Python packaging. Writing a *helloworld.py* file and running it on your computer is simple, but getting it to run on someone else's computer (and doing this the "right" way) involves a tangle of terms, tools, and techniques. What are wheel files? What is distutils? Do I use distutils or easy_install or pip?

To get to the bottom of this myself, I've compiled a curriculum of PyCon talks, online documentation, and my own personal notes to finally get a complete handle on Python packaging.

Read more...


Wed 17 October 2018

Writing Bots to Play Zombie Dice

Posted by Al Sweigart in python   

Programming games are a games genre where instead of playing the game directly, players write bot programs to play the game autonomously. I've created a Zombie Dice simulator, allowing programmers to practice their skills while having fun making game-playing AIs. Zombie Dice bots can be simple or incredibly complex, and are great for a class exercise or an individual programming challenge.

Read more...