Let's look at a simple example of a recursive function to see what it needs at minimum.
Python 3.11 will include a TOML parsing module called
tomllib. Let's learn what TOML files are (they're similar to JSON), how they're useful for configuration files, and how you can write Python code to read them.
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.
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.
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.
This blog post examines different ways that Python lists and dictionaries can be used to represent a 2D data structure. I also write some test programs to measure the performance of each data structure.
How to Test Multiple Variables Against a Single Value and a Single Variable Against Multiple Values in Python
Python has a more concise syntax that uses the
in operator and the multiple values packaged in a tuple. To check if one of multiple variables is one of many values, you can use a list comprehension and the
Here are 22 actual, runnable Python code for several recursive functions, written in a style to be understandable by beginners and produce debuggable output.
I created the
bitfielddraw Python module so that you could turn math formulas into .png image files.
itertoolsmodule already exists. Includes working code examples.
In March 2020, just before the lockdowns would begin, I gave the opening keynote at PyTennessee 2020. Unfortunately, it wasn't recorded. But I still have the script I used and so I re-recorded the talk. I've posted it to my YouTube channel.
Extracting text as string values from images is called optical character recognition (OCR) or simply text recognition. This blog post tells you how to run the Tesseract OCR engine from Python. Includes working code examples.
This tutorial teaches you about Pip, a package manager that installs third-party packages for Python.
A quick guide to using type hints in Python.