Index Ai Academy
Glossary · Phase 0 · Tools

Module

Also written: modules

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.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write