A utility function in Python is a small, self-contained piece of code that performs a specific task. It’s called a “utility” because it’s a helpful tool that makes a certain task easier to perform.