Index Ai Academy
Glossary · Phase 0 · Tools

Import

Also written: imports

The Python command that loads code from a module so you can use it.

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