Index Ai Academy
Glossary · Phase 0 · Tools

Indentation

Also written: indented

The spaces at the start of a line of code. In Python they show which lines belong to a block; one level is four spaces.

In most writing, the space at the start of a line is decoration. In Python it has a meaning. Spaces at the start of a line are called indentation, and they say which lines belong together.

Try it now

Step through. Python accepts a line exactly as typed or stops at the first character it can't read.

Learn it properly

Typing code exactly · Brackets, quotes, indentation and the look-alike characters that stop a program. About 26 minutes.

Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 0 · lesson 26 min

Typing code exactly

Brackets, quotes, indentation and the look-alike characters that stop a program.

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