CBSE Class 12 Computer Science Question 28 of 62

Using Python Libraries — Question 2

Back to all questions
2
Question

Question 2

A Python program and a Python module have the same .py file extension.

Answer

True

Reason — A Python program is saved in a .py file, which can be executed to perform a specific task. A Python module is also a .py file containing Python code, but it's meant to be imported and used in other Python programs or modules to reuse code. So, both Python programs and modules share the same file extension, i.e., .py.