fix(curriculum): correct docstring example in Python V9 Step 24 (#65098)

Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
This commit is contained in:
Jeevankumar S
2026-01-13 10:31:33 +01:00
committed by GitHub
co-authored by Jeevankumar-S
parent 7c3d6339bb
commit 6fd632d228
@@ -10,8 +10,8 @@ dashedName: step-24
A docstring is a string placed as the first statement in a class or function, and it's used to provide documentation for that class or function. Docstrings are typically enclosed by triple double quotes:
```py
def add(x):
"""A function that returns the square of a number."""
def add(x, y):
"""A function that returns the sum of two numbers."""
return x + y
```