A Python function is a block of code that performs a specific task and can be reused multiple times within a program.