Home › AI terms › Docstring

Docstring

What is docstring? A simple explanation for beginners, with no jargon.

A short description in triple quotes at the start of a function, explaining what it does.

Learn it hands-on

Hevara teaches docstring step by step, with everyday examples and practice questions, in:

Related terms

New to AI?

Hevara explains artificial intelligence, machine learning and generative AI from zero, with plain-English lessons and hands-on case studies.

Start learning free See the course

← All AI terms