In simple words, a module is a file of Python code. It can define, functions, classes, and variables, as well as executable code.