Glossary · Phase 0 · Tools
Module
A file of Python code you can import and reuse.
Try it now
This explains the classic mistake: name your own file random.py and Python finds yours first.
Learn it properly
Modules and imports · Use Python's standard library instead of reinventing it. About 20 minutes.
Other terms from the same lesson
- import: The Python command that loads code from a module so you can use it.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.