Special comments called documentation strings, or "doc strings" : Documentation « Function « Python Tutorial
- Python Tutorial
- Function
- Documentation
def foo():
"This is a doc string."
return True
# doc strings can be accessed at runtime
# doc strings can be used to automatically generate documentation.