Log in or register to post comments Python modules are files containing Python code. This code can either be functions classes or variables. A Python module is a .py file containing executable code. Some of the commonly used built-in modules are: os sys math random data time JSON Tags Python Basics Interview Questions Python Interview Questions