Skip to content

Commit 3647951

Browse files
Enhance docstring for custom_equation
Updated docstring for custom_equation function.
1 parent b87ce2e commit 3647951

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎Week04/functions_egehan_hatipoglu.py‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55

66
def custom_equation(x: int = 0, y: int = 0, /,
77
a: int = 1, b: int = 1, *, c: int = 1) -> float:
8-
9-
10-
8+
"""
9+
Calculate a mathematical equation.
10+
11+
:param x: First integer
12+
:param y: Second integer
13+
:param a: First exponent
14+
:param b: Second exponent
15+
:param c: Divisor
16+
:return: Equation result
17+
"""
1118
return (x**a + y**b) / c
1219

1320

0 commit comments

Comments
 (0)