The prompt
Add clear docstrings and comments to the code below. Document what each function does, its parameters, and return value. Comment only the non-obvious logic — don't state the obvious. Keep the code itself unchanged. Code: [PASTE]

More prompts in this discipline

Collected from the Notion template. Want to share one of yours? Submit a prompt.