KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Science

What is a module? What is the file extension of a Python module?

Python Modules

3 Likes

Answer

A module is a file consisting of a Python code that can define functions, classes and variables related to a particular task. A module allows us to organize our code by grouping related codes, which makes the code easier to understand and use. The file extension of a Python module is ".py".

Answered By

1 Like


Related Questions