The Difference Between Python Modules and Python Scripts
This lesson discusses modules and scripts. You’ll learn about the main differences between the two and you’ll see that:
- Scripts are top level files intended for execution and
- Modules are intended to be imported
00:00 Let’s look at the difference between modules and scripts.
00:04 Scripts are top-level files intended for execution by the user. Most of the programs you’ve written or will write in the near future probably will be scripts, but they may well make use of modules to extend the power of the programs that you write.
00:18 Modules are intended to be imported and will extend the power of the scripts that you write. One of the great features of the Python language is the huge range of modules and packages that you can import to increase its functionality.
Become a Member to join the conversation.