Skip to content

Glossary: Coding with AI Assistants

Docstring

Also written: docstrings

A triple-quoted string on the first line inside a function that describes what it does. Editors show it on hover and it doesn't change how the code runs.

Where the book teaches it

Related terms

Type hint