| id | ||
|---|---|---|
| title | ||
| section | ||
| module | ||
| subscription | ||
| difficulty | ||
| reference | ||
| tags | ||
| see_also | ||
| works_with | ||
| file_path |
- Used with: # List main types this works with, e.g. lists, dicts
- Construct: # Function or method? Show how it is called
- Library: # Built-in, or module name if not built-in
- Iterable: # Does it work with iterables? (yes/no/which)
- Time Complexity: # (if known; skip or estimate if not)
➡️ What does this function/method do?
When and why would you use it?
Anything unique about its behavior?
➡️ Which data types is this function/method used with?
E.g., works on lists, strings, dicts, etc.
# ➡️ Write the most typical usage pattern here.- explanation: explain syntax
-
Required: # List and explain required arguments
-
Optional: # List and explain optional arguments
-
Maximum: # If there are variadic or flexible arguments, note here
-
Required:
# Show usage with only required arguments- Optional:
# Show usage with optional arguments as well- Maximum
# If there's a max/flexible usage, show it- name of example # Describe what the example does
# Example code here- name of example # Describe what the example does
# Another example code- name of example # Describe what the example does
# Another example codeNote: # Any additional notes about edge cases or behavior
- Write at least 2–3 tips or common pitfalls
- Best practices
- Things beginners get wrong
# Short code illustration (if needed)➡️ List related types, key methods, and concepts in label format.- tuple