Module source?


Hi there,
Just a quick question out of curiosity more than anything. When you import a module in Python where is it being imported from? Does it need to come from an external source e.g. the internet, or is it built into Python but just needs to be "switched on" which happens when you import it into your code?


Modules take up space. Python has a huge collection of modules, most of them borrowing from C or actually C (as I understand). It's what makes it so fast. The modules are built in to Python but not in namespace memory until we import them.


Ah. Cool. Thank you :slightly_smiling: