You're working on a simple data pipeline task and want to implement a small transformation step in Python before wiring it into a larger workflow.
Write a Python function to calculate the average of a list of numbers.