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
What is a Python library? Explain with examples.
Write a module to input total number of days and find the total number of months and remaining days and display it in another program.
How do you reuse the functions defined in a module in your program?
In how many ways can you import objects from a module?