Files containing Python codes are referred to as Python modules. This code can be of different types like classes, functions, or variables. This saves the programmer’s time by providing predefined functionalities when needed. It is a file with “.py” extension containing an executable code.

Shathana. S.R. Answered question July 7, 2023