What is a 'Module' in Python?

Asked by kemiadewale · 2 weeks ago

1 Answer

19
amorebise · 2 weeks ago Top Answer

A module is just a file containing Python code that you can 'import' into your own file. It’s like borrowing a specialized tool from a neighbor.

Python comes with many 'built-in' modules for things like math or time. You don't have to write everything from scratch. Stand on the shoulders of giants!

Log in to add a comment.