KnowledgeBoat Logo

Computer Science

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

Python Libraries

2 Likes

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.

Answered By

2 Likes


Related Questions