A Python module is a file (.py file) containing variables, class definitions, statements and functions related to a particular task.