Loading…
Docstrings document what a function does:
def calculate_area(width, height):
"""
Calculate the area of a rectangle.
Args:
width: The width of the rectangle.
height: The height of the rectangle.
Returns:
The area (width × height).
"""
return width * height
Add proper docstrings to the filter_expenses function. Include:
Downloading Python… (one-time, ~10 MB)
This runs entirely in your browser and is cached for next time.