CBSE Class 11 Computer Science Question 34 of 63

Introduction to Python Modules — Question 3

Back to all questions
3
Question

Question 3

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

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".